Adventure-Bot / adventure-bot

Slay a monster! Stab your friend! Adventure Bot!
https://www.adventurebot.io/
6 stars 6 forks source link

Redux connection failure is noisy #134

Open brian-gates opened 2 years ago

brian-gates commented 2 years ago

Given this in .env...

REDUX_DEVTOOLS_ENABLED=true

...and given redux-devtools have not been started.

When starting yarn dev, the following is output:

remote-redux-devtools: Socket connection errors are being suppressed. 
This can be disabled by setting suppressConnectErrors to 'false'.     
Error [SocketProtocolError]: Socket hung up
    at SCClientSocket._onSCClose (E:\adventure-bot\adventure-bot-dev\node_modules\socketcluster-client\lib\scclientsocket.js:632:15)
    at SCTransport.<anonymous> (E:\adventure-bot\adventure-bot-dev\node_modules\socketcluster-client\lib\scclientsocket.js:304:12)
    at SCTransport.Emitter.emit (E:\adventure-bot\adventure-bot-dev\node_modules\component-emitter\index.js:133:20)
    at SCTransport._onClose (E:\adventure-bot\adventure-bot-dev\node_modules\socketcluster-client\lib\sctransport.js:217:28)
    at WebSocket.SCTransport.wsSocket.onerror (E:\adventure-bot\adventure-bot-dev\node_modules\socketcluster-client\lib\sctransport.js:81:12)
    at WebSocket.onError (E:\adventure-bot\adventure-bot-dev\node_modules\ws\lib\event-target.js:140:16)
    at WebSocket.emit (node:events:390:28)
    at WebSocket.emit (node:domain:475:12)
    at emitErrorAndClose (E:\adventure-bot\adventure-bot-dev\node_modules\ws\lib\websocket.js:835:13)
    at ClientRequest.<anonymous> (E:\adventure-bot\adventure-bot-dev\node_modules\ws\lib\websocket.js:697:5) {
  code: 1006
}

Ideally this would output something a little more developer friendly e.g.

remotedev-server not found, to start it, run:
yarn game redux-devtools
https://github.com/Adventure-Bot/adventure-bot/blob/main/developer-guide.md#redux-devtools

For reference, when it loads successfully, it says

connected to remotedev-server