提交 4118abc2 编写于 作者: 雨爱无痕

Fix issue

上级 b6d19882
......@@ -81,7 +81,7 @@ export class WebSocket {
static sentMsg(roomName: string, msg: string, appApiHost: string): void {
console.log(`send msg to room "${roomName}"`)
if (WebSocket.conns[appApiHost]){
WebSocket.conns[appApiHost].leaveAll().then(() =>
WebSocket.conns[appApiHost].disconnect().then(() =>
this.joinRoomAndSend(roomName, msg, appApiHost)
)
}else{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册