mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-16 03:07:34 +00:00
Disable WebSocket feature if GWSockets is not installed
This commit is contained in:
parent
e6f7d5bead
commit
d1b3876574
|
@ -15,6 +15,7 @@ for k, v in pairs(websocketFeature) do
|
||||||
end
|
end
|
||||||
|
|
||||||
if (!useWebsocket) then
|
if (!useWebsocket) then
|
||||||
|
gmInte.config.websocket = false
|
||||||
return gmInte.log("WebSocket is not used")
|
return gmInte.log("WebSocket is not used")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -26,11 +27,12 @@ if (!GWSockets) then
|
||||||
gmInte.logError("GWSockets is not installed! Please install it from https://github.com/FredyH/GWSockets/releases")
|
gmInte.logError("GWSockets is not installed! Please install it from https://github.com/FredyH/GWSockets/releases")
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
gmInte.config.websocket = false
|
||||||
return
|
return
|
||||||
|
else
|
||||||
|
gmInte.config.websocket = true
|
||||||
end
|
end
|
||||||
|
|
||||||
gmInte.config.websocket = true
|
|
||||||
|
|
||||||
local socket = GWSockets.createWebSocket("wss://ws.gmod-integration.com")
|
local socket = GWSockets.createWebSocket("wss://ws.gmod-integration.com")
|
||||||
|
|
||||||
// Authentication
|
// Authentication
|
||||||
|
|
Loading…
Reference in New Issue
Block a user