Fetch events generated from data received from the network. Call this method immediately after any of the ``receive_*()`` methods. Process resulting events, likely by passing them to the application. Returns: Events read from the connection.
(self)
| 479 | # Public method for getting incoming events after receiving data. |
| 480 | |
| 481 | def events_received(self) -> list[Event]: |
| 482 | """ |
| 483 | Fetch events generated from data received from the network. |
| 484 | |
| 485 | Call this method immediately after any of the ``receive_*()`` methods. |
| 486 | |
| 487 | Process resulting events, likely by passing them to the application. |
| 488 | |
| 489 | Returns: |
| 490 | Events read from the connection. |
| 491 | """ |
| 492 | events, self.events = self.events, [] |
| 493 | return events |
| 494 | |
| 495 | # Public method for getting outgoing data after receiving data or sending events. |
| 496 |
no outgoing calls