(self, data)
| 74 | self._writer.pong(message) |
| 75 | |
| 76 | def send_str(self, data): |
| 77 | if self._closed: |
| 78 | raise RuntimeError('websocket connection is closed') |
| 79 | if not isinstance(data, str): |
| 80 | raise TypeError('data argument must be str (%r)' % type(data)) |
| 81 | self._writer.send(data, binary=False) |
| 82 | |
| 83 | def send_bytes(self, data): |
| 84 | if self._closed: |