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>

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.6
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.6
    2
  • 0.1.5
    1
  • 0.1.4
    2

Package Sidebar

Install

npm i rapifire

Weekly Downloads

1

Version

0.1.6

License

MIT

Last publish

Collaborators

  • rapifire