dual-engine.io-client

0.6.0 • Public • Published

dual-engine.io-client Build Status

Allow a dualapi domain in a browser to communicate with a dualapi domain behind an engine.io server. The server side transport and example use is at dual-engine.io.

Generally, the server is connected by providing engine.io-client to the domain. The server domain will be provided at the requested mount point (in this case server/..), and we will receive connect/server upon successful connection.

var dualapi = require('dualapi')
   .use(require('dual-engine.io-client'));
 
var d = dualapi()
    .mount({
        connect: {
            server: function () {
              // server is connected.  say hello
              d.send({ to: ['server', 'hello'], body: 'Hellooo!' });
            }
        }
    });
 
d.engineio(require('engine.io-client'), ['server']);

Use browserify to build the client side javascript.

Readme

Keywords

Package Sidebar

Install

npm i dual-engine.io-client

Weekly Downloads

1

Version

0.6.0

License

ISC

Last publish

Collaborators

  • plediii