Skip to content

How to send str json format ping #21

Answered by tarasko
River-Shi asked this question in Q&A
Discussion options

You must be logged in to vote

It seems that picows library initiating disconnect because you didn't let picows know that you have received user specific pong.

If you redefine ping messages by overriding WSListener.send_user_specific_ping, you should also redefine expected pong replies by redefining either WSListener.is_user_specific_pong or by calling transport.notify_user_specific_pong_received() from on_ws_frame.

Check the guide on auto ping feature. It explains that.
https://picows.readthedocs.io/en/stable/guides.html#auto-ping

Also picows logs that it has not received user specific pong within required time and that's why it has initiated disconnect. You should be able to see that in the log

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@River-Shi
Comment options

@River-Shi
Comment options

Answer selected by tarasko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #20 on November 09, 2024 16:47.