node-jet

Jet Realtime Message Bus for the Web. Daemon and Peer implementation.

About

This is Jet daemon and peer implementation.

Install

 $ npm install node-jet

Stand-alone daemon

The package provides a stand-alone Jet Daemon which listens on ports 11122 (trivial protocol) and 11123 (WebSockets). The daemon can optionally serve the debug interface Radar (see below).

 $ jetd.js

Daemon Integration

If you want the Daemon to listen for WebSockets on the same port as your existing (node.js) HTTP server, use the daemon.listen({server:httpServer}) method.

Start some example peer

The package provides an example peer, which adds some States and Methods to play with.

 $ some-service.js

Radar

Open Radar on jetbus.io. Your local Jet Daemon's default WebSocket address is ws://localhost:11123.

To use the github Radar version:

$ git clone https://github.com/lipp/radar
$ jetd.js <path-to-radar>

Visit Your Radar.

Doc

For documentation refer to the API docs and the Jet Homepage.