ringcentral / ringcentral-extensible

RingCentral Extensible SDK
10 stars 6 forks source link

fix(ws): [misc] fix "WebSocket is already in CLOSING or CLOSED state" on pinging server #78

Closed ruleechen closed 1 year ago

ruleechen commented 1 year ago

Found an error occured on sending ping message to server.

16:54:22.759  ==== Sleep Detected =====
16:54:22.810  WebSocket is already in CLOSING or CLOSED state.
ws.send @ commons.js:2
pingServer @ commons.js:2
(anonymous) @ commons.js:2
r @ commons.js:2
setTimeout (async)
(anonymous) @ commons.js:2
(anonymous) @ commons.js:2
r @ commons.js:2

image_2023_9_12_16_59_26