tincisnotcatan icon indicating copy to clipboard operation
tincisnotcatan copied to clipboard

Cannot Start New Game with Google Chrome

Open Johnkurveen opened this issue 3 years ago • 5 comments

Each time I try making a new game, when I press start game, it kicks me back to the username menu. Using Chrome, and the same issue existed on Microsoft edge and for my friend, though her browser, Brave, seemed to work

Johnkurveen avatar Sep 05 '21 00:09 Johnkurveen

Thanks for opening the issue, I've noticed this too! As a bad workaround, I was able to get it the game to work as expected on Safari with a Mac. I think there must be some browser change that broke our code recently but haven't had time to look into it 😢 . Would love any help with the issue!

seansegal avatar Feb 11 '22 21:02 seansegal

I'm noticing Firefox reports Firefox can’t establish a connection to the server at wss://<LOCAL_IP_ADDRESS>:4567/groups/. in the console. Could this be related? Fails to connect and so it reverts to the start page?

reederda avatar Mar 23 '22 04:03 reederda

Would love to see this fixed as well

DomenicTroilo avatar Jul 14 '22 21:07 DomenicTroilo

@seansegal The problem appears to be occurring in src/main/resources/static/js/websocket.js with the declaration of the WebSocket. I found that if I replaced the if statement with just webSocket = new WebSocket("ws://" + location.hostname + ":" + location.port + "/action/"); the issue is resolved.

reederda avatar Oct 26 '22 04:10 reederda

@reederda Thanks for the suggestion - I tried that in https://github.com/seansegal/tincisnotcatan/pull/9, but it has not resolved the issue for me.

seansegal avatar Nov 01 '22 01:11 seansegal