mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 22:07:34 +00:00
fix: websocket activation
This commit is contained in:
parent
6324b24b95
commit
3613cdd255
|
@ -2,22 +2,6 @@
|
||||||
// WebSocket
|
// WebSocket
|
||||||
//
|
//
|
||||||
|
|
||||||
local useWebsocket = false
|
|
||||||
local websocketFeature = {
|
|
||||||
'syncChat',
|
|
||||||
'websocket',
|
|
||||||
}
|
|
||||||
|
|
||||||
for k, v in pairs(websocketFeature) do
|
|
||||||
if (gmInte.config[v]) then
|
|
||||||
useWebsocket = true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
if (!useWebsocket) then
|
|
||||||
return gmInte.log("WebSocket is not used")
|
|
||||||
end
|
|
||||||
|
|
||||||
require("gwsockets")
|
require("gwsockets")
|
||||||
|
|
||||||
if (!GWSockets) then
|
if (!GWSockets) then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user