mirror of
https://github.com/imezx/Warp.git
synced 2025-04-24 15:10:03 +00:00
Update Index.luau
Remove tostrings on Key
This commit is contained in:
parent
8d7acddd8c
commit
ad0cc31ea7
1 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ function Client:Invoke(timeout: number, ...: any): any
|
||||||
end
|
end
|
||||||
|
|
||||||
function Client:Connect(callback: (args: any) -> ()): string
|
function Client:Connect(callback: (args: any) -> ()): string
|
||||||
local key = tostring(Key())
|
local key = Key()
|
||||||
table.insert(self.fn, key)
|
table.insert(self.fn, key)
|
||||||
self.IsConnected = #self.fn > 0
|
self.IsConnected = #self.fn > 0
|
||||||
ClientProcess.addCallback(self.id, key, callback)
|
ClientProcess.addCallback(self.id, key, callback)
|
||||||
|
@ -49,7 +49,7 @@ function Client:Connect(callback: (args: any) -> ()): string
|
||||||
end
|
end
|
||||||
|
|
||||||
function Client:Once(callback: (args: any) -> ()): string
|
function Client:Once(callback: (args: any) -> ()): string
|
||||||
local key = tostring(Key())
|
local key = Key()
|
||||||
table.insert(self.fn, key)
|
table.insert(self.fn, key)
|
||||||
self.IsConnected = #self.fn > 0
|
self.IsConnected = #self.fn > 0
|
||||||
ClientProcess.addCallback(self.id, key, function(...)
|
ClientProcess.addCallback(self.id, key, function(...)
|
||||||
|
|
Loading…
Reference in a new issue