fix connect

This commit is contained in:
Linventif 2023-09-26 19:13:32 +02:00
parent 878008e719
commit cd4c6d578c

View File

@ -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")