fix(core): update
This commit is contained in:
parent
f98c797ad8
commit
d712270946
@ -112,6 +112,11 @@ export class SmartsocketClient {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// handle connection
|
||||||
|
this.socketConnection.socket.on('connect', async () => {
|
||||||
|
this.updateStatus('connected');
|
||||||
|
});
|
||||||
|
|
||||||
// handle disconnection and errors
|
// handle disconnection and errors
|
||||||
this.socketConnection.socket.on('disconnect', async () => {
|
this.socketConnection.socket.on('disconnect', async () => {
|
||||||
await this.disconnect();
|
await this.disconnect();
|
||||||
|
@ -68,6 +68,11 @@ export class SocketConnection {
|
|||||||
|
|
||||||
// standard behaviour that is always true
|
// standard behaviour that is always true
|
||||||
allSocketConnections.add(this);
|
allSocketConnections.add(this);
|
||||||
|
|
||||||
|
// handle connection
|
||||||
|
this.socket.on('connect', async () => {
|
||||||
|
this.updateStatus('connected');
|
||||||
|
});
|
||||||
this.socket.on('disconnect', async () => {
|
this.socket.on('disconnect', async () => {
|
||||||
plugins.smartlog.defaultLogger.log(
|
plugins.smartlog.defaultLogger.log(
|
||||||
'info',
|
'info',
|
||||||
|
Loading…
Reference in New Issue
Block a user