use websocket transport first for socket.io

This commit is contained in:
Eugene 2023-05-08 18:53:16 -04:00 committed by psychedelicious
parent 1f608d3743
commit 79d49853d2

View File

@ -46,6 +46,8 @@ export const socketMiddleware = () => {
// TODO: handle providing jwt to socket.io
socketOptions.auth = { token: OpenAPI.TOKEN };
}
socketOptions.transports = ['websocket', 'polling'];
}
const socket: Socket<ServerToClientEvents, ClientToServerEvents> = io(