MCPcopy Create free account
hub / github.com/ScattrdBlade/bigFileUpload / subscribeUploadState

Function subscribeUploadState

utils/upload.ts:117–120  ·  view source on GitHub ↗
(listener: () => void)

Source from the content-addressed store, hash-verified

115}
116
117export function subscribeUploadState(listener: () => void): () => void {
118 uploadStateListeners.add(listener);
119 return () => uploadStateListeners.delete(listener);
120}
121
122export function getUploadState(): UploadProgressState {
123 return uploadState;

Callers 1

ProgressBarInnerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected