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

Method _send

server/index.js:131–136  ·  view source on GitHub ↗
(peer, message)

Source from the content-addressed store, hash-verified

129 }
130
131 _send(peer, message) {
132 if (!peer) return;
133 if (this._wss.readyState !== this._wss.OPEN) return;
134 message = JSON.stringify(message);
135 peer.socket.send(message, error => '');
136 }
137
138 _keepAlive(peer) {
139 this._cancelKeepAlive(peer);

Callers 5

_onConnectionMethod · 0.95
_onMessageMethod · 0.95
_joinRoomMethod · 0.95
_leaveRoomMethod · 0.95
_keepAliveMethod · 0.95

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected