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)
Clone de repository and type
npm install
node index
This starts a server on port 7777
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.
mux-demux basically does this:
If you modify browser.js and want to recompile, use:
npm run build
License: MIT