mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +01:00
change disconnect toast
This commit is contained in:
@@ -10,7 +10,7 @@ export const game = () => {
|
||||
const socket = io('/in-game');
|
||||
socket.on('disconnect', () => {
|
||||
timerWorker.terminate();
|
||||
toast('You are disconnected.', 'error', true);
|
||||
toast('Disconnected. Attempting reconnect...', 'error', true, false);
|
||||
});
|
||||
socket.on('connect', () => {
|
||||
socket.emit(globals.COMMANDS.GET_ENVIRONMENT, function(returnedEnvironment) {
|
||||
|
||||
Reference in New Issue
Block a user