There could be several reasons why the on_message callback is not being called even though the packet is visible in Wireshark:
Incorrect URL: Ensure that the WebSocket connection is established with the correct URL. If the URL is incorrect, the client will not be able to receive any messages.
Incorrect protocol or headers: Verify that the WebSocket protocol and headers are set up correctly. If the protocol or headers are not set up properly, the server may not deliver any messages to the client.
Firewall or security settings: Check if there are any firewall or security settings in place that may be blocking the incoming messages. Some firewalls may block WebSocket traffic, so it's worth checking with the network administrator or security team.
Server-side issues: Debug the server-side code to ensure that the messages are being sent properly from the server. If there are any issues with the server-side code, the client may not receive any messages.
Network issues: Check if there are any network issues that may be causing the issue. Sometimes, network latency or connectivity issues can cause messages to be lost, so it's worth checking the network logs as well.
These are some of the possible reasons why the on_message callback is not being called even though the packet is visible in Wireshark.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2022-03-16 11:00:00 +0000
Seen: 10 times
Last updated: Jul 31 '21
The content inside my buttons is not visible on the screen.
What causes peep and pop operations to produce invalid outputs?
What does the message "No tests found" from playwright VSCode mean?
Why does SVG fail to display in Safari, but functions properly in Chrome?
How to use hyperlinks in SharePoint List within Teams?
What is the meaning of the build error message "NoClassDefFoundError: org/apache/xpath/XPathAPI"?
What is the correct way to load the jQuery fullcalendar plugin in a div that is not visible?