Called when a WebSocket message is received from the client or server. The most recent message will be flow.messages[-1]. The message is user-modifiable. Currently there are two types of messages, corresponding to the BINARY and TEXT frame types.
| 31 | |
| 32 | @dataclass |
| 33 | class WebsocketMessageHook(StartHook): |
| 34 | """ |
| 35 | Called when a WebSocket message is received from the client or |
| 36 | server. The most recent message will be flow.messages[-1]. The |
| 37 | message is user-modifiable. Currently there are two types of |
| 38 | messages, corresponding to the BINARY and TEXT frame types. |
| 39 | """ |
| 40 | |
| 41 | flow: http.HTTPFlow |
| 42 | |
| 43 | |
| 44 | @dataclass |
no outgoing calls
no test coverage detected
searching dependent graphs…