Nikatlas 6 年之前
父節點
當前提交
5ac97ea7f4
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/Game/services/SocketService.js

+ 1 - 0
src/Game/services/SocketService.js

@@ -9,6 +9,7 @@ class SocketService {
             this.socket.disconnect();
         this.socket = openSocket('http://localhost:3555/' + channel);
         this.on = this.socket.on.bind(this.socket);
+        this.once = this.socket.once.bind(this.socket);
         this.emit = this.socket.emit.bind(this.socket);
     }