|
@@ -68,14 +68,14 @@ export class MetaGateway
|
|
|
user_id: '',
|
|
|
};
|
|
|
|
|
|
- if (this.gameChanel.isOpen()) {
|
|
|
- // console.log('this.gameChanel.isOpen()', this.gameChanel.isOpen());
|
|
|
- this.sendWertcHeartPack(this.gameChanel);
|
|
|
- // const heartPack = new DataView(new ArrayBuffer(4));
|
|
|
- // heartPack.setUint32(0, 2009889916);
|
|
|
- // this.gameChanel.sendMessageBinary(Buffer.from(heartPack.buffer));
|
|
|
- // return pong;
|
|
|
- }
|
|
|
+ // if (this.gameChanel.isOpen()) {
|
|
|
+ // // console.log('this.gameChanel.isOpen()', this.gameChanel.isOpen());
|
|
|
+ // // this.sendWertcHeartPack(this.gameChanel);
|
|
|
+ // // const heartPack = new DataView(new ArrayBuffer(4));
|
|
|
+ // // heartPack.setUint32(0, 2009889916);
|
|
|
+ // // this.gameChanel.sendMessageBinary(Buffer.from(heartPack.buffer));
|
|
|
+ // // return pong;
|
|
|
+ // }
|
|
|
return pong;
|
|
|
}
|
|
|
|
|
@@ -166,7 +166,6 @@ export class MetaGateway
|
|
|
|
|
|
this.gameChanel.onOpen(() => {
|
|
|
console.log('channel is open');
|
|
|
- // debugger;
|
|
|
clearInterval(this.timer);
|
|
|
|
|
|
let i = 1;
|