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:
parent
1f608d3743
commit
79d49853d2
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user