|
@@ -22,10 +22,13 @@ export default class Socket extends EventEmitter {
|
|
}));
|
|
}));
|
|
E(this, "send", e=>{
|
|
E(this, "send", e=>{
|
|
if (this.wsNoReady())
|
|
if (this.wsNoReady())
|
|
|
|
+ {
|
|
return;
|
|
return;
|
|
|
|
+ }
|
|
const t = JSON.stringify(e);
|
|
const t = JSON.stringify(e);
|
|
- e.id !== "heartbeat" && logger.info("send ws frame", t),
|
|
|
|
- this._ws.send(t)
|
|
|
|
|
|
+ e.id !== "heartbeat" && logger.info("send ws frame", t);
|
|
|
|
+ this._ws.send(t);
|
|
|
|
+ console.log('发送socket数据:'+t)
|
|
}
|
|
}
|
|
);
|
|
);
|
|
E(this, "startGame", ()=>{
|
|
E(this, "startGame", ()=>{
|