washo4evr / Socket.io-v1.x-Library

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

Auto disconnect #60

Open ngvietdung96 opened 5 years ago

ngvietdung96 commented 5 years ago

Hi, after few time with my ESP32 project, when i connect and don't communicate anything with server, after few second it'll disconnect from socket.io server.

hope you check that problem. Have a nice day.

HRahikainen commented 5 years ago

Yes. I would also like to know, if you need to manually send the client.heartbeat() and how to use it. It seems to me that my ESP32 cliient disconnects after the 20-30 seconds that it isn't sending or receiving. I'm not explicitly sending heartbeat from the server (express/nodejs) at the moment. My connection to this hardware piece needs to stay online.

Hope you see this and thanks for your work so far.