Page 1 of 1

WebSocket connection error.

Posted: 08 August 2025, 07:03
by ric1950
I am getting this error when trying to play with spectator view - everything is fine when playing the game with the players:

centrifuge.js:1 WebSocket connection to 'wss://ws.studio.boardgamearena.net/connection/websocket' failed: WebSocket is closed before the connection is established.

Can anyone help, please.

Re: WebSocket connection error.

Posted: 09 August 2025, 00:12
by ric1950
I should have added for further information that the page loads in normally with spectator view. Without the WebSocket connection there are no notifications received so the page isn't updating as the game progresses.

Re: WebSocket connection error.

Posted: 10 August 2025, 03:02
by ric1950
I found the issue in my code. I had used a hack to get the screen displaying properly for the spectator by allocating a player id to the spectator. Once I removed that and dealt with the screen display differently it was able to connect to the WebSocket.
I don't know why but lesser things have confused me.
Thanks to everyone who looked at my post.