(event)
| 36 | useWebSocket(baseUrl, { |
| 37 | shouldReconnect: () => true, |
| 38 | onMessage(event) { |
| 39 | try { |
| 40 | const data = getSuperJson<T>(event.data); |
| 41 | if (data !== null && data !== undefined) { |
| 42 | debouncedOnMessage(data); |
| 43 | } |
| 44 | } catch (error) { |
| 45 | console.error('Error parsing message', error); |
| 46 | } |
| 47 | }, |
| 48 | }); |
| 49 | } |
nothing calls this directly
no test coverage detected