MCPcopy Create free account
hub / github.com/duxianwei520/react / callback

Method callback

app/configs/socket.js:72–77  ·  view source on GitHub ↗
(res)

Source from the content-addressed store, hash-verified

70 }
71 return new Promise((resolve) => {
72 const callback = (res) => {
73 if (this.uid === res.uid && res.timestamp === data.timestamp) {
74 this.socket.off('dispatch', callback);
75 resolve();
76 }
77 };
78 this.socket.on('dispatch', callback);
79 });
80 };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected