shoe reconnect-core and mux-demux example.
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.
Using multiple streams but just one websocket connection (With mux-demux)
mux-demux basically does this:
If you modify browser.js and want to recompile, use:
npm run build