mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 23:03:45 +02:00
Implement basic support for connecting to wings console via websocket rather than socketio
This commit is contained in:
@@ -19,17 +19,12 @@ export default {
|
||||
state.connectionError = err;
|
||||
},
|
||||
|
||||
SOCKET_CONNECT_ERROR: (state: SocketState, err: Error) => {
|
||||
state.connected = false;
|
||||
state.connectionError = err;
|
||||
'SOCKET_INITIAL STATUS': (state: SocketState, data: string) => {
|
||||
state.status = data;
|
||||
},
|
||||
|
||||
'SOCKET_INITIAL STATUS': (state: SocketState, data: { status: number }) => {
|
||||
state.status = data.status;
|
||||
},
|
||||
|
||||
SOCKET_STATUS: (state: SocketState, data: { status: number }) => {
|
||||
state.status = data.status;
|
||||
SOCKET_STATUS: (state: SocketState, data: string) => {
|
||||
state.status = data;
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user