Merge branch 'main' of github.com:eolinker/eoapi

This commit is contained in:
scarqin 2022-09-09 22:53:14 +08:00
commit 7001b439f5

View File

@ -84,6 +84,11 @@ export class WebsocketComponent implements OnInit, OnDestroy {
{ transports: ['websocket'] }
);
this.socket.on('connect_error', (error) => {
// * conncet socketIO is failed
console.log('connect_error', error);
this.isSocketConnect = false;
});
this.socket.on('error', (error) => {
// * conncet socketIO is failed
console.log('error', error);
this.isSocketConnect = false;