MCPcopy Create free account
hub / github.com/ShouChenICU/FastSend / createRecipientStatusState

Function createRecipientStatusState

app/types/transfer.ts:180–193  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

178 * 构造默认接收端状态。
179 */
180export function createRecipientStatusState(): RecipientStatusState {
181 return {
182 isConnectServer: false,
183 isConnectPeer: false,
184 isPeerConnecting: false,
185 isIniting: true,
186 isWaitingPeerConfirm: true,
187 isLock: false,
188 isReceiving: false,
189 isDone: false,
190 error: createMessageState(),
191 warn: createMessageState()
192 }
193}
194
195/**
196 * 构造默认目录同步状态。

Callers 2

resetStateFunction · 0.90

Calls 1

createMessageStateFunction · 0.85

Tested by

no test coverage detected