I’m building a chat plugin using WebSockets with @mightyalex and we’re seeing some issues with the WebSocket layer:
- When the server closes the connection, the
onerrorlisteners are not called. They are inconsistently fired immediately after a message is sent. Interestingly, the events are fired if the computer loses internet connectivity.
- We’re still debugging the root cause, but it might be the case that XD freezes some time after the connection has been terminated by the server. (Observed on Mac.)
Anyone available from the dev team to help us understand the
onclose behavior and potential workarounds?