3 ms·
The chat client thing is pretty interesting, but there's this little bit: > Use the browser API — To get started you just create a new web socket! Well, then y
by rtpg 10y ago
The chat client thing is pretty interesting, but there's this little bit:
> Use the browser API — To get started you just create a new web socket! Well, then you need to open the connection. But do not forget to add an onerror listener to detect when the connection goes down and try to reconnect with an exponential backoff strategy. And ......
How does handling errors happen I wonder. If you take FB messenger for example, you would queue up a message but if the sending failed you would get an opportunity to retry/not send it at all.
I suppose in FB's case you could write your own subscription provider...