增加5秒延迟
This commit is contained in:
@@ -34,12 +34,15 @@ function OnGatewaySocketConnect() {
|
||||
print("\x1b[96m" + "############双端插件初始化成功############" + "\x1b[0m");
|
||||
});
|
||||
|
||||
local Jso = {
|
||||
op = 10001,
|
||||
channel = Sq_Game_GetConfig(),
|
||||
type = 1
|
||||
}
|
||||
Socket.SendGateway(Jso);
|
||||
Timer.SetTimeOut(function() {
|
||||
local Jso = {
|
||||
op = 10001,
|
||||
channel = Sq_Game_GetConfig(),
|
||||
type = 1
|
||||
}
|
||||
Socket.SendGateway(Jso);
|
||||
}, 5000);
|
||||
|
||||
|
||||
foreach(value in OnGatewaySocketConnectFunc) {
|
||||
value();
|
||||
|
||||
Reference in New Issue
Block a user