MCPcopy
hub / github.com/SnapDrop/snapdrop / sendText

Method sendText

client/scripts/network.js:218–221  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

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)));

Callers 1

_onSendTextMethod · 0.80

Calls 1

sendJSONMethod · 0.95

Tested by

no test coverage detected