ayushsharma82 / WebSerial

A remote terminal library for wireless microcontrollers to log, monitor or debug your firmware/product
https://webserial.pro
GNU Affero General Public License v3.0
507 stars 113 forks source link

[v2] Too many ping-pong messages #77

Closed mathieucarbou closed 5 months ago

mathieucarbou commented 5 months ago

The UI is sending to many ping requests, which forces the server to answer and then take a slot in the message queue.

image

I message each 500ms / 1 sec would be largely enough, and the ping message should be sent ONLY IF the UI did not receive a message recently. Any message reception acts like a PONG...

ayushsharma82 commented 5 months ago

A bug. It should have been same as 3 sec interval like pro version. Easy fix though.

ayushsharma82 commented 5 months ago

Fixed as of v2.0.1