seansegal / tincisnotcatan

An online version of Settlers of Catan with additional advanced economic features
http://tinc.herokuapp.com/
MIT License
150 stars 21 forks source link

Cannot Start New Game with Google Chrome #8

Open Johnkurveen opened 3 years ago

Johnkurveen commented 3 years ago

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

seansegal commented 2 years ago

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!

reederda commented 2 years ago

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?

DomenicTroilo commented 2 years ago

Would love to see this fixed as well

reederda commented 1 year ago

@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.

seansegal commented 1 year ago

@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.