Reputation: 163282
I need to multiplex a couple streams between the browser and a Node.js server over a single Websocket connection. One stream is going to be used for sending binary data from the browser to the server, and the other is going to be used for a simple RPC.
I stumbled across BinaryJS which does exactly what I want. However, it has a specific problem with binary data and doesn't appear to be maintained regularly. Is there an alternative? My requirements:
I actually don't care so much about browser support. My application relies on other modern APIs, so I'm only targeting current versions of Chrome and Firefox. Any ideas?
Upvotes: 3
Views: 940
Reputation: 436
Brad I fixed the typed array issue with BinaryJS you were experiencing (in version 0.2.0). But you're right I haven't had much time to maintain it so you may run into other issues.
Upvotes: 3