mafintosh / signalhub

Simple signalling server that can be used to coordinate handshaking with webrtc or other fun stuff.
MIT License
667 stars 97 forks source link

Multiplexing streams? #2

Closed bnolan closed 9 years ago

bnolan commented 9 years ago

How efficient is it following several hundred subscribers when using the client in the browser? Will it open n xmlhttprequests?

max-mapper commented 9 years ago

it's 1 connection per channel. data is multiplexed for a channel. you only listen for sub, you POST/PUT for pub

On Thursday, April 30, 2015, Ben Nolan notifications@github.com wrote:

How efficient is it following several hundred subscribers when using the client in the browser? Will it open n xmlhttprequests?

— Reply to this email directly or view it on GitHub https://github.com/mafintosh/signalhub/issues/2.

Sent from my phone

bnolan commented 9 years ago

Would the per-host connection limit be a problem here?

https://code.google.com/p/chromium/issues/detail?id=285567

bnolan commented 9 years ago

Made a pull request https://github.com/mafintosh/signalhub/pull/3 for subscribing to multiple streams.

bnolan commented 9 years ago

Pull request merged.

bnolan commented 9 years ago

You can now subscribe to an array of channels.