ShareJSStream

34 views
Skip to first unread message

Jonathan Clem

unread,
Nov 20, 2014, 11:08:35 AM11/20/14
to sha...@googlegroups.com
I've put together an easy-to-use Duplex stream for use with ShareJS: https://github.com/slowink/share-js-stream

It's specifically meant for use with the einaros/ws WebSocket library, but it would probably work with almost any other. It handles bad JSON with (what are as far as I can tell) correct WebSocket close codes, has a verbose logging option for debugging, and has the option to send a keep-alive null message to the client every n milliseconds (this is necessary, for example, on a platform like Heroku).

It also has tests :)

This has been very useful for me, hopefully for some of you all, as well.
Reply all
Reply to author
Forward
0 new messages