max-mapper / websocket-stream

websockets with the node stream API
BSD 2-Clause "Simplified" License
668 stars 114 forks source link

Multiple Duplex Streams per Connection? #107

Closed simplygreatwork closed 7 years ago

simplygreatwork commented 7 years ago

I'm currently evaluating using websocket-stream. One of the nicer aspects of using socket.io is that you can return a response back to any emitter - and it gets routed back to that callback handler. Does websocket-stream support multiple duplex streams (channels) per connection? If not, what's the best approach?

mcollina commented 7 years ago

You can use http://npm.im/multiplex or http://npm.im/tentacoli on top.