Dump websocket messages once the connection ends. Alternatively, you can replace `websocket_end` with `websocket_message` if you want the messages to be dumped one at a time with full metadata. Warning: this takes up _a lot_ of space.
(self, flow)
| 252 | self.queue.put(flow.get_state()) |
| 253 | |
| 254 | def websocket_end(self, flow): |
| 255 | """ |
| 256 | Dump websocket messages once the connection ends. |
| 257 | |
| 258 | Alternatively, you can replace `websocket_end` with |
| 259 | `websocket_message` if you want the messages to be |
| 260 | dumped one at a time with full metadata. Warning: |
| 261 | this takes up _a lot_ of space. |
| 262 | """ |
| 263 | self.queue.put(flow.get_state()) |
| 264 | |
| 265 | |
| 266 | addons = [JSONDumper()] # pylint: disable=invalid-name |