(text)
| 216 | } |
| 217 | |
| 218 | sendText(text) { |
| 219 | const unescaped = btoa(unescape(encodeURIComponent(text))); |
| 220 | this.sendJSON({ type: 'text', text: unescaped }); |
| 221 | } |
| 222 | |
| 223 | _onTextReceived(message) { |
| 224 | const escaped = decodeURIComponent(escape(atob(message.text))); |