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
461 stars 107 forks source link

[v2] Too many ping-pong messages #77

Closed mathieucarbou closed 3 weeks ago

mathieucarbou commented 3 weeks 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 3 weeks ago

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

ayushsharma82 commented 3 weeks ago

Fixed as of v2.0.1