rapifire

0.1.6 • Public • Published

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>

Package Sidebar

Install

npm i rapifire

Weekly Downloads

0

Version

0.1.6

License

MIT

Last publish

Collaborators

  • rapifire