A
A
Alexander Andropov2021-10-20 13:02:35
Python
Alexander Andropov, 2021-10-20 13:02:35

How to restrict receiving data via WebSocket?

Good day friends, I use python web sockets.
websocket-client module.
The platform sends me data every second. But so often I don't need to.

Is it possible to somehow limit the time? so that, for example, data is sent every 7 seconds, or, for example, every 15 seconds? Thank you

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Cheremisin, 2021-10-20
@leahch

Alas, web-socket is a push technology, and if something is limited, then on the server side.

R
rPman, 2021-10-20
@rPman

put a layer between the server and you, which will filter the data flow, or watch. does the server know how to limit it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question