mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-06 00:24:56 -05:00
Revert "Fixes vite dev with arbitrary socketio port"
This reverts commit 9ce62f0478.
This commit is contained in:
committed by
Lincoln Stein
parent
fb6beaa347
commit
40430ad29c
@@ -24,20 +24,9 @@ import * as InvokeAI from '../invokeai';
|
||||
export const socketioMiddleware = () => {
|
||||
const { hostname, port } = new URL(window.location.href);
|
||||
|
||||
if (import.meta.env.VITE_SOCKETIO_PORT !== undefined) {
|
||||
console.log(
|
||||
`Running in Vite dev mode, using socketio port ${
|
||||
import.meta.env.VITE_SOCKETIO_PORT
|
||||
}`
|
||||
);
|
||||
}
|
||||
|
||||
const socketio = io(
|
||||
`http://${hostname}:${import.meta.env.VITE_SOCKETIO_PORT || port}`,
|
||||
{
|
||||
timeout: 60000,
|
||||
}
|
||||
);
|
||||
const socketio = io(`http://${hostname}:9090`, {
|
||||
timeout: 60000,
|
||||
});
|
||||
|
||||
let areListenersSet = false;
|
||||
|
||||
@@ -164,6 +153,7 @@ export const socketioMiddleware = () => {
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
case 'socketio/cancelProcessing': {
|
||||
emitCancelProcessing();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user