mirror of
https://github.com/imezx/Warp.git
synced 2025-04-24 07:00: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
|
||||
|
||||
function Client:Connect(callback: (args: any) -> ()): string
|
||||
local key = tostring(Key())
|
||||
local key = Key()
|
||||
table.insert(self.fn, key)
|
||||
self.IsConnected = #self.fn > 0
|
||||
ClientProcess.addCallback(self.id, key, callback)
|
||||
|
@ -49,7 +49,7 @@ function Client:Connect(callback: (args: any) -> ()): string
|
|||
end
|
||||
|
||||
function Client:Once(callback: (args: any) -> ()): string
|
||||
local key = tostring(Key())
|
||||
local key = Key()
|
||||
table.insert(self.fn, key)
|
||||
self.IsConnected = #self.fn > 0
|
||||
ClientProcess.addCallback(self.id, key, function(...)
|
||||
|
@ -86,4 +86,4 @@ function Client:Destroy()
|
|||
setmetatable(self, nil)
|
||||
end
|
||||
|
||||
return Client.new
|
||||
return Client.new
|
||||
|
|
Loading…
Reference in a new issue