(self, message='b')
| 120 | return self._exception |
| 121 | |
| 122 | def ping(self, message='b'): |
| 123 | if self._writer is None: |
| 124 | raise RuntimeError('Call .prepare() first') |
| 125 | if self._closed: |
| 126 | raise RuntimeError('websocket connection is closing') |
| 127 | self._writer.ping(message) |
| 128 | |
| 129 | def pong(self, message='b'): |
| 130 | # unsolicited pong |
no outgoing calls