0.1.6 • Published 9 years ago

rapifire v0.1.6

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Rapifire Websocket API

Example

<script src="rapifire.min.js"></script>

<script>
 var client = new Rapifire({
   appId: '...',
   authId: '...',
   authKey: '...',
   debug: true,
   url: 'ws://ps.sentaca.com/pubsub',
   onconnect: function() {
     client.subscribe({
       channel:  'test', // or channel: ['a', 'b', 'c'] 
       interactive: true,
       callback: function(message, headers) {
         console.log("Received msg: %O headers: %O", message, headers);
       }
     });
   }
 });

</script>
0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago