chatengine-io / react-chat-engine

React component for a cheap and easy chat API
138 stars 35 forks source link

Socket reconnecting patches #106

Closed alamorre closed 2 years ago

alamorre commented 2 years ago

I think the (now > shouldPongBy) check isn't occurring running before re-render begins.

I think this is why some race-condition is making the socket flicker 100 times in a row.

We need to put the re-render callback behind this IF statement.

Nobody needs to read this - it's for my own sanity