mirror of
https://github.com/Leo501/CocosCreatorTutorial.git
synced 2026-05-08 06:38:37 +08:00
当用不同方式建立websocket时,会用不同的onopen事件
This commit is contained in:
@@ -121,6 +121,7 @@ export class WebsocketMgr {
|
||||
//发送心跳
|
||||
let dateObj = new Date();
|
||||
this.lastTickCBTime = dateObj.getTime();
|
||||
//发送open事件。如发起 login 事件 or create account
|
||||
//KBEngine.Event.fire('onConnectionState', true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user