filecoin-shipyard / browser-retrieval

A p2p network of Filecoin content retrievers
21 stars 8 forks source link

Prevent Socket.io from falling back to HTTP #122

Closed ghost closed 3 years ago

ghost commented 4 years ago

It results in this error if Sockets.io try and fails to make a websocket connection and then falls back to HTTP(S)

Screen Shot 2020-11-05 at 9.24.44 AM.png

Disable fallback to http(s)

brunolm commented 4 years ago

https://socket.io/docs/server-api/

transports | ['polling', 'websocket'] | transports to allow connections to
ghost commented 3 years ago

@brunolm Close once you've double checked.

brunolm commented 3 years ago

Yes, it's configured here: https://github.com/filecoin-shipyard/browser-retrieval/blob/a884fa01ccbd652165440aa411a7bef1ba5c727e/src/shared/socket-client/SocketClient.ts#L107