We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey @britzl,
I'm trying to allow your library to respond to PING messages. It seems some PING messages aren't received sometimes.
So far, I've found that when the PING comes, it can be received here, and sometimes it doesn't:
defold-websocket/websocket/sync.lua
Line 25 in b480623
I've added a check for opcode == 0x9 here to automatically send the PONG messages:
opcode == 0x9
PONG
if opcode == 0x9 then -- reply PING opcode with PONG print("REPLY WITH PONG") self.send(self, message, 0xA) elseif message then on_message(message) end
My server logs are looking like this (Colyseus automatically disconnects users after 3 PING's without response 😢 )
SEND PING SEND PING PONG RECEIVED! SEND PING SEND PING SEND PING
Do you have any clue why? Cheers!
The text was updated successfully, but these errors were encountered:
FYI this problem doesn't happen in emscripten environment since the browser handles PING/PONG messages automatically
emscripten
Sorry, something went wrong.
In the official LuaWebsocket project there's an issue discussing PING/PONG: lipp/lua-websockets#94
12b2816
Merge pull request #4 from endel/ping-pong
5c8ba4e
implement PING/PONG protocol. fixes #2
No branches or pull requests
Hey @britzl,
I'm trying to allow your library to respond to PING messages. It seems some PING messages aren't received sometimes.
So far, I've found that when the PING comes, it can be received here, and sometimes it doesn't:
defold-websocket/websocket/sync.lua
Line 25 in b480623
I've added a check for
opcode == 0x9
here to automatically send thePONG
messages:My server logs are looking like this (Colyseus automatically disconnects users after 3 PING's without response 😢 )
Do you have any clue why? Cheers!
The text was updated successfully, but these errors were encountered: