Disable keep-alive pings with ping_interval=None
#343
Labels
type: documentation
An issue or pull request for improving or updating the documentation
ping_interval=None
#343
While testing the
WebSocketTransport
to run subscriptions I've started to get random errors. Turns out it was keep-alive ping that server ignored:Fix
My initial thought was to set
ping_interval=None
and that would stop connection from dropping (passing it through towebsockets
args). However, this changed nothing. And after a little bit of investigation I tried to passconnect_args={"ping_interval": None}
to influencewebsockets
directly and it worked like a charm.Expected behavior
I believe
ping_interval=None
should change websocketsping_interval
argument. If I'm wrong than this could be stated somewhere in the docs or an argument's docstring. Thanks in advance!To reproduce
You may query this graph.
The text was updated successfully, but these errors were encountered: