improve socket disconection to suport rtengineng

This commit is contained in:
SrGooglo 2025-04-09 21:04:54 +00:00
parent 1838d32fe0
commit 3a2c3aeef0

View File

@ -98,10 +98,10 @@ class WebsocketManager {
return null return null
} }
if ( const isConnected =
socket.connected === true && socket.connected === true || socket.state?.connected === true
typeof socket.disconnect === "function"
) { if (isConnected && typeof socket.disconnect === "function") {
await socket.disconnect() await socket.disconnect()
} }