StompMessagingClient抛出错误
This commit is contained in:
parent
ae2b97d0fa
commit
100ddafc75
@ -5356,6 +5356,7 @@ class StompMessagingClient extends MessageClient {
|
|||||||
// websocket错误处理
|
// websocket错误处理
|
||||||
this.cli.onWebSocketError = (err) => {
|
this.cli.onWebSocketError = (err) => {
|
||||||
console.error('websocket错误', err);
|
console.error('websocket错误', err);
|
||||||
|
this.emit('disconnected', '');
|
||||||
};
|
};
|
||||||
this.cli.activate();
|
this.cli.activate();
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "graphic-pixi",
|
"name": "graphic-pixi",
|
||||||
"version": "0.1.2",
|
"version": "0.1.3",
|
||||||
"description": "基于pixijs的图形应用、绘制应用框架",
|
"description": "基于pixijs的图形应用、绘制应用框架",
|
||||||
"productName": "Graphic-pixi",
|
"productName": "Graphic-pixi",
|
||||||
"author": "walker <shengxuqiang@joylink.club>",
|
"author": "walker <shengxuqiang@joylink.club>",
|
||||||
|
@ -45,6 +45,7 @@ export class StompMessagingClient extends MessageClient {
|
|||||||
// websocket错误处理
|
// websocket错误处理
|
||||||
this.cli.onWebSocketError = (err: Event) => {
|
this.cli.onWebSocketError = (err: Event) => {
|
||||||
console.error('websocket错误', err);
|
console.error('websocket错误', err);
|
||||||
|
this.emit('disconnected', '');
|
||||||
};
|
};
|
||||||
|
|
||||||
this.cli.activate();
|
this.cli.activate();
|
||||||
|
Loading…
Reference in New Issue
Block a user