Function
setConnection
({state, dispatch}, websocket)
Source from the content-addressed store, hash-verified
| 110 | }, |
| 111 | |
| 112 | setConnection({state, dispatch}, websocket) { |
| 113 | const existingWebsocket = internalState.websocket; |
| 114 | |
| 115 | if (!isNull(existingWebsocket) && !existingWebsocket.isClosed()) { |
| 116 | existingWebsocket.close(); |
| 117 | } |
| 118 | |
| 119 | internalState.websocket = websocket; |
| 120 | }, |
| 121 | |
| 122 | resendValues({state}) { |
| 123 | const websocket = internalState.websocket; |
Callers
nothing calls this directly
Tested by
no test coverage detected