Example usage of shoe, reconnect-core and mux-demux.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
.gitignore
README.md
browser.js
index.js
muxdemux.png
package.json
sample.gif
samplestream.js

README.md

shoe reconnect-core and mux-demux example.

sample

A simple example that uses shoe for websockets and reconnect-core to keep the connection alive.

Multiple streams of data are used but only one websocket is used (thanks to mux-demux)

Install

Clone de repository and type

npm install
node index

This starts a server on port 7777

Reconnect

Stop the node process, a "disconnected" message will be displayed every few seconds. When you re start the server the browser reconnects and continues displaying data.

Using multiple streams but just one websocket connection (With mux-demux)

mux-demux basically does this:

muxdemux

Build

If you modify browser.js and want to recompile, use:

npm run build

License: MIT