MCPcopy Create free account
hub / github.com/ShareDropio/sharedrop / acceptFileTransfer

Function acceptFileTransfer

app/components/peer-widget.js:87–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85 },
86
87 acceptFileTransfer() {
88 const { peer } = this;
89
90 this._sendFileTransferResponse(true);
91
92 peer.get('peer.connection').on('receiving_progress', (progress) => {
93 peer.set('transfer.receivingProgress', progress);
94 });
95 peer.set('state', 'sending_file_data');
96 },
97
98 rejectFileTransfer() {
99 const { peer } = this;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected