2
0
mirror of https://github.com/esiur/esiur-js.git synced 2026-03-18 15:30:38 +00:00

error msg

This commit is contained in:
2024-02-06 17:36:58 +03:00
parent 757d949c18
commit 84bf9fa539
6 changed files with 1509 additions and 5494 deletions

View File

@@ -106,9 +106,9 @@ export default class WSocket extends ISocket
rt.trigger(true);
};
ws.onerror = () => {
ws.onerror = (ee) => {
self.state = SocketState.Closed;
rt.triggerError(ErrorType.Management, ExceptionCode.HostNotReachable);
rt.triggerError(ErrorType.Management, ExceptionCode.HostNotReachable, ee.message);
};
self._assign(ws);