MCPcopy Create free account
hub / github.com/ambianic/peerfetch / disconnect

Method disconnect

javascript/src/peerfetch.ts:127–131  ·  view source on GitHub ↗

* Tead down connections to remote peer and signaling server.

()

Source from the content-addressed store, hash-verified

125 * Tead down connections to remote peer and signaling server.
126 */
127 async disconnect() {
128 if (this._peer) {
129 this._peer.destroy()
130 }
131 }
132
133 private _setSignalingServiceConnectionHandlers (peer: Peer, setupResolve: Function, setupReject: Function) {
134 // isSetupResolved indicates whether the setupReady promise has been resolved or rejected

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected