Use 0ms as polling interval value
See original GitHub issueHi!
I would like to perform long polling like this:
var bot = new TelegramBot(token, { polling: { timeout: 2000, interval: 0 } });
The problem is that 0 is replaced with default 2000ms inside the module. I can use interval: 1
. It solves the issue but doesn’t feel right. Is there any other way to perform long polling?
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
How often Storage Resource Manager (SRM)Polls the storage?
The polling interval is how often data is gathered from the device and put into SRM database. Interval of datapoints (data sampling) is...
Read more >1947712 – [OVN] Many faults and Polling interval stuck for 4 ...
Description of problem: We believe this causes packet drops or latency that causes an application in OpenShift to crash.
Read more >Can merge replication operate with 0 ms delay, i.e. be real-time?
This delay can be decreased by specifying a lower value for the -PollingInterval parameter which is how often in seconds the publisher or ......
Read more >Poll intervals - IBM
The number of poll intervals affects the response times. A guideline is provided to help with choosing the appropriate interval.
Read more >Cisco MDS 9000 Series Interfaces Configuration Guide ...
You can configure the polling interval using the port monitor counter command. For configuring the SFP counters, see Configuring a Port Monitor Policy....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As said on #41 I don’t know why people want to do 0ms pooling interval, its really annoying for server and client, its just like DDoSing Telegram.
I will set default polling interval by 300ms
Allow 0ms as polling interval. Default timeout 10 seconds.