-
I use v15.9.0 Tell me how to disable automatic connection disconnection( disable idleTimeout ) or how to send system ping \ pong from server to clients using OpCode 0x9 [PING] and 0xA [PONG] If the opportunity to implement events ping\pong? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 1 reply
-
Set it to 0 |
Beta Was this translation helpful? Give feedback.
-
@alexhultman how to send system ping \ pong from server to clients ? If the clients is mobile phone, need server sending ping and receiving pong to check clients status. Or is there anyway to set |
Beta Was this translation helpful? Give feedback.
-
You can't currently. Clients send messages to the server to keep alive |
Beta Was this translation helpful? Give feedback.
-
@alexhultman Also I want to point out that currently (I'm using v15.11.0) a connection is closed even if a message was sent by the server to the client, while the documentation says that the
I suppose either the behavior should be changed or the documentation must be corrected. And I would like to have the ping/pong feature too. |
Beta Was this translation helpful? Give feedback.
-
@RussCoder You mind creating a new bug for that? |
Beta Was this translation helpful? Give feedback.
-
@alexhultman |
Beta Was this translation helpful? Give feedback.
-
Here you go: Put this on the client.
|
Beta Was this translation helpful? Give feedback.
-
Note that this discussion is slightly outdated; we are going to support sending pings from the server in an easy way in future releases. |
Beta Was this translation helpful? Give feedback.
Set it to 0