Handle incoming WebSocket data. Args: data: a JSON dictionary
(self, data)
| 263 | proxy.value = event |
| 264 | |
| 265 | def _handle_data(self, data): |
| 266 | """Handle incoming WebSocket data. |
| 267 | |
| 268 | Args: |
| 269 | data: a JSON dictionary |
| 270 | """ |
| 271 | if "id" in data: |
| 272 | self._handle_cmd_response(data) |
| 273 | else: |
| 274 | self._handle_event(data) |
| 275 | |
| 276 | def _handle_cmd_response(self, data: dict): |
| 277 | """Handle a response to a command. |
no test coverage detected