(self)
| 93 | self.type = Opcode(typ) |
| 94 | |
| 95 | def _format_ws_message(self) -> bytes: |
| 96 | if self.from_client: |
| 97 | return b"[OUTGOING] " + self.content |
| 98 | else: |
| 99 | return b"[INCOMING] " + self.content |
| 100 | |
| 101 | def __repr__(self): |
| 102 | if self.type == Opcode.TEXT: |
no outgoing calls