fix: websocket activation

This commit is contained in:
Linventif 2024-03-31 20:00:48 +02:00
parent 6324b24b95
commit 3613cdd255
No known key found for this signature in database
GPG Key ID: FAC0CA60F9AEEC24

View File

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