(self, message='b')
| 127 | self._writer.ping(message) |
| 128 | |
| 129 | def pong(self, message='b'): |
| 130 | # unsolicited pong |
| 131 | if self._writer is None: |
| 132 | raise RuntimeError('Call .prepare() first') |
| 133 | if self._closed: |
| 134 | raise RuntimeError('websocket connection is closing') |
| 135 | self._writer.pong(message) |
| 136 | |
| 137 | def send_str(self, data): |
| 138 | if self._writer is None: |
no outgoing calls