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