Raised when sending a frame is forbidden in the current state. Specifically, the Sans-I/O layer raises this exception when: * sending a data frame to a connection in a state other :attr:`~websockets.protocol.State.OPEN`; * sending a control frame to a connection in a state o
| 433 | |
| 434 | |
| 435 | class InvalidState(WebSocketException, AssertionError): |
| 436 | """ |
| 437 | Raised when sending a frame is forbidden in the current state. |
| 438 | |
| 439 | Specifically, the Sans-I/O layer raises this exception when: |
| 440 | |
| 441 | * sending a data frame to a connection in a state other |
| 442 | :attr:`~websockets.protocol.State.OPEN`; |
| 443 | * sending a control frame to a connection in a state other than |
| 444 | :attr:`~websockets.protocol.State.OPEN` or |
| 445 | :attr:`~websockets.protocol.State.CLOSING`. |
| 446 | |
| 447 | """ |
| 448 | |
| 449 | |
| 450 | class ConcurrencyError(WebSocketException, RuntimeError): |
no outgoing calls
searching dependent graphs…