mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
use websocket transport first for socket.io
This commit is contained in:
@ -46,6 +46,8 @@ export const socketMiddleware = () => {
|
|||||||
// TODO: handle providing jwt to socket.io
|
// TODO: handle providing jwt to socket.io
|
||||||
socketOptions.auth = { token: OpenAPI.TOKEN };
|
socketOptions.auth = { token: OpenAPI.TOKEN };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
socketOptions.transports = ['websocket', 'polling'];
|
||||||
}
|
}
|
||||||
|
|
||||||
const socket: Socket<ServerToClientEvents, ClientToServerEvents> = io(
|
const socket: Socket<ServerToClientEvents, ClientToServerEvents> = io(
|
||||||
|
Reference in New Issue
Block a user