Skip to content
New issue

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

There is no pong message from ws wss://stream.bybit.com/v5/public/linear #255

Open
modryk opened this issue Nov 25, 2024 · 0 comments
Open

Comments

@modryk
Copy link

modryk commented Nov 25, 2024

Hi! Has anyone tried subscribing to all symbols at once? Currently, there are 486 symbols. I divide them into batches of 10 symbols each. I've tried subscribing using one connection, two, three, and so on up to 40 connections... The problem is always the same: the server never responds with a single "pong" message.

I added logging to the following functions: _on_pong, _send_custom_ping, _send_initial_ping, and on_message. Here's what I observed:

_send_initial_ping works correctly.
_send_custom_ping also works as expected, but the _on_pong function is never triggered because, with this number of subscriptions, the server doesn't send back any "pong" messages.

In general, the application doesn't overload the server. I've implemented controls at the levels of symbol fetching, subscription list creation, and WebSocket management. However, the number of open connections doesn't seem to make a difference. Whether it's 40 connections or just one, I still don't receive a single "pong" message from the server.

When using 40 connections (opened at 1-second intervals), the script eventually starts sending automatic pings every second for each connection... But even with just one connection, it still doesn't work. Has anyone encountered something like this before?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant