mirror of
https://github.com/imezx/Warp.git
synced 2025-11-05 04:13:36 +00:00
Update init.luau
fix bug: server function be invoke too manay time.
server code
local Wrap = require(game.ReplicatedStorage.Warp)
local Func = Wrap.Server("Func");
Func:Connect(function(player: Player, str,num)
warn("on_invoke", player.Name)
task.wait(1)
return "hi.."
end)
client code:
local Wrap = require(game.ReplicatedStorage.Warp)
local Func = Wrap.Client("Func");
warn(Func:Invoke(3, "balala"))
This commit is contained in:
parent
aa693aee4f
commit
921e1bd282
1 changed files with 2 additions and 1 deletions
|
|
@ -204,6 +204,7 @@ function ClientProcess.start()
|
||||||
queueOutRequest[1][Identifier] = {}
|
queueOutRequest[1][Identifier] = {}
|
||||||
end
|
end
|
||||||
table.insert(queueOutRequest[1][Identifier], { requestData[1], requestData[3] })
|
table.insert(queueOutRequest[1][Identifier], { requestData[1], requestData[3] })
|
||||||
|
requestData[3]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -302,4 +303,4 @@ function ClientProcess.start()
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
return ClientProcess
|
return ClientProcess
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue