mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
add action for socket connection error
This commit is contained in:
@ -28,10 +28,16 @@ export const socketConnected = createAction('socket/socketConnected');
|
||||
export const appSocketConnected = createAction('socket/appSocketConnected');
|
||||
|
||||
/**
|
||||
* Socket.IO Disconnect
|
||||
* Socket.IO Connection Error
|
||||
*
|
||||
* Do not use. Only for use in middleware.
|
||||
*/
|
||||
export const socketConnectionError = createAction<{ error: Error }>('socket/socketConnectionError');/**
|
||||
|
||||
* Socket.IO Disconnect
|
||||
*
|
||||
* Do not use. Only for use in middleware.
|
||||
*/
|
||||
export const socketDisconnected = createAction('socket/socketDisconnected');
|
||||
|
||||
/**
|
||||
|
@ -4,6 +4,7 @@ import { addToast } from 'features/system/store/systemSlice';
|
||||
import { makeToast } from 'features/system/util/makeToast';
|
||||
import {
|
||||
socketConnected,
|
||||
socketConnectionError,
|
||||
socketDisconnected,
|
||||
socketGeneratorProgress,
|
||||
socketGraphExecutionStateComplete,
|
||||
@ -56,6 +57,7 @@ export const setEventListeners = (arg: SetEventListenersArg) => {
|
||||
);
|
||||
}
|
||||
}
|
||||
dispatch(socketConnectionError({ error }))
|
||||
});
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user