washo4evr / Socket.io-v1.x-Library

Socket.io Library for Arduino
108 stars 58 forks source link

Dropping Incoming Events #57

Open jpoles1 opened 6 years ago

jpoles1 commented 6 years ago

It seems that when events come in quick succession, that they get lost. This may be because I am trying to process the events and respond as they arrive? Anyone else experiencing these issues or know of a fix?

washo4evr commented 6 years ago

Hi, how fast are we talking? Also, what board are you using?

jpoles1 commented 6 years ago

Thanks for getting in touch @washo4evr! I'm using an ESP32. I'll have 3 or so events come in over the course of a half second or so. I've changed my application to space each event out by 250 ms and that seems to fix it, but it's not the best solution. Was thinking there might be behaviour to store incoming events in a buffer or something.

washo4evr commented 6 years ago

that could work if you get a burst of data, then nothing (during which time you can process the data) and repeat I need to benchmark how fast we can go