okdistribute / hyperdrive-ui

Render a hyperdrive in the browser.
http://karissa.github.io/hyperdrive-ui/
40 stars 4 forks source link

signalhub status #23

Closed clkao closed 8 years ago

clkao commented 8 years ago

If you have multiple browser tabs, the connection to signalhub is blocked due to per-host connection limit (hello this is 2016?) and making the UI non-responsive.

There should be an indicator if signalhub is not responsive after a few seconds.

juliangruber commented 8 years ago

maybe there's also a way to fix this. could we have random wildcard subdomains with signalhub?

i fear if the ui, ie the whole thread, is blocked, there's no way we can update any ui.

mafintosh commented 8 years ago

i'll take a look at this

mafintosh commented 8 years ago

@clkao are you sure it is signalhub connections and not webrtc data channels thats the bottleneck here?

clkao commented 8 years ago

Aye, Chrome 53.0.2760.0 canary. From a second tab opening hyperdrive-ui:

screen shot 2016-06-07 at 6 47 35 pm

mafintosh commented 8 years ago

signalhub connections are always pending. they are event source streams.

clkao commented 8 years ago

This is from the first tab: first 4 connections are done and there are two pending. I think that's the open connection preventing the second tab from establishing the eventsource. screen shot 2016-06-07 at 8 01 40 pm

Can you reproduce the issue with the second tab in the same browser?

okdistribute commented 8 years ago

moving this to datproject/dat.land