mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 21:17:34 +00:00
fix connect
This commit is contained in:
parent
878008e719
commit
cd4c6d578c
|
@ -36,9 +36,9 @@ function gmInte.websocketSend(data)
|
|||
end
|
||||
|
||||
hook.Add("InitPostEntity", "gmInte:ServerReady:WebSocket", function()
|
||||
if (gmInte.config.websocket) then wsConnect() end
|
||||
if (gmInte.config.websocket) then socket:connect() end
|
||||
end)
|
||||
|
||||
if (gmInte.config.debug) then wsConnect() end
|
||||
if (gmInte.config.debug) then socket:connect() end
|
||||
|
||||
print(gmInte.config.debug && "WebSocket Debug Mode" || "WebSocket")
|
Loading…
Reference in New Issue
Block a user