Skip to content

Commit

Permalink
Update server.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Leesneaks committed Mar 13, 2024
1 parent 119f93d commit 2e0b18a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions modules/game_bot/functions/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ context.BotServer.init = function(name, channel)
return context.error("BotServer is already initialized")
end
context.BotServer._websocket = HTTP.WebSocketJSON(context.BotServer.url, {
onOpen = function()
context.BotServer._wasConnected = true
context.BotServer.reconnectAttempts = 0
context.warn("BotServer connected.")
end,
onMessage = function(message, socketId)
if not context._websockets[socketId] then
return g_http.cancel(socketId)
Expand Down

0 comments on commit 2e0b18a

Please sign in to comment.