mirror of
https://github.com/AlecM33/Werewolf.git
synced 2026-01-01 00:46:33 +01:00
correctly configure socket server for gcloud
This commit is contained in:
@@ -17,9 +17,11 @@ const game = () => {
|
||||
if (timerWorker) {
|
||||
timerWorker.terminate();
|
||||
}
|
||||
timerWorker = null;
|
||||
toast('Disconnected. Attempting reconnect...', 'error', true, false);
|
||||
});
|
||||
socket.on('connect', () => {
|
||||
console.log("connect event fired");
|
||||
socket.emit(globals.COMMANDS.GET_ENVIRONMENT, function (returnedEnvironment) {
|
||||
timerWorker = new Worker(new URL('../modules/Timer.js', import.meta.url));
|
||||
prepareGamePage(returnedEnvironment, socket, timerWorker);
|
||||
|
||||
Reference in New Issue
Block a user