StompMessagingClient抛出错误

This commit is contained in:
dong 2023-12-22 09:59:41 +08:00
parent ae2b97d0fa
commit 100ddafc75
3 changed files with 3 additions and 1 deletions

View File

@ -5356,6 +5356,7 @@ class StompMessagingClient extends MessageClient {
// websocket错误处理
this.cli.onWebSocketError = (err) => {
console.error('websocket错误', err);
this.emit('disconnected', '');
};
this.cli.activate();
}

View File

@ -1,6 +1,6 @@
{
"name": "graphic-pixi",
"version": "0.1.2",
"version": "0.1.3",
"description": "基于pixijs的图形应用、绘制应用框架",
"productName": "Graphic-pixi",
"author": "walker <shengxuqiang@joylink.club>",

View File

@ -45,6 +45,7 @@ export class StompMessagingClient extends MessageClient {
// websocket错误处理
this.cli.onWebSocketError = (err: Event) => {
console.error('websocket错误', err);
this.emit('disconnected', '');
};
this.cli.activate();