()
| 256 | } |
| 257 | |
| 258 | private connect() { |
| 259 | try { |
| 260 | this.connectWebSocket() |
| 261 | } catch { |
| 262 | // Do not try to connect if we're on the server side |
| 263 | if (typeof window === 'undefined') return |
| 264 | this.connectSSE() |
| 265 | } |
| 266 | } |
| 267 | |
| 268 | private handleEventReceived(data: string) { |
| 269 | try { |
no test coverage detected