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

Method send

client/scripts/network.js:52–55  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

50 }
51
52 send(message) {
53 if (!this._isConnected()) return;
54 this._socket.send(JSON.stringify(message));
55 }
56
57 _endpoint() {
58 // hack to detect if deployment or development environment

Callers 7

_onMessageMethod · 0.95
_disconnectMethod · 0.95
_sendMethod · 0.80
_sendSignalMethod · 0.80
sendToMethod · 0.80
_sendMethod · 0.80
_sendMethod · 0.80

Calls 1

_isConnectedMethod · 0.95

Tested by

no test coverage detected