()
| 192 | }; |
| 193 | |
| 194 | const disconnect = () => { |
| 195 | connectionRefCount = Math.max(0, connectionRefCount - 1); |
| 196 | |
| 197 | if (connectionRefCount === 0) { |
| 198 | disconnectTimer = setTimeout(() => { |
| 199 | if (connectionRefCount === 0) { |
| 200 | closeWebSocket(); |
| 201 | } |
| 202 | }, 500); |
| 203 | } |
| 204 | }; |
| 205 | |
| 206 | const sendPsMessage = () => { |
| 207 | if (!isWsOpen()) { |
nothing calls this directly
no test coverage detected