websocket
websocket copied to clipboard
Support binary websockets?
I'd like to send protobuf messages over a websocket, but the only interface that WebSocket exposes is String-based.
I've started working on this on my fork. It basically replaces String with a sum type which includes String, Blob, and ArrayBuffer.
The current challenges is that I need to shim in a binary package to do the local development.
This would be a breaking (semver major) change.
@johnpmayer How's that going?
I need this support too. My company uses websockets for mobile apps and thus wants to svae on bandwidth. As a result all websocket traffic is encoded using msgpack, but the current library cannot handle that.
I had a go at hacking this library but ran in to a possible race condition. @johnpmayer did you make better progress?
Any possibility of this happening?
bump