MCPcopy Create free account
hub / github.com/Noumena-Network/code / next

Method next

src/remote/appServer/client.test.ts:54–60  ·  view source on GitHub ↗
(label = 'fake peer message')

Source from the content-addressed store, hash-verified

52 }
53
54 next(label = 'fake peer message'): Promise<unknown> {
55 const queued = this.queued.shift()
56 if (queued !== undefined) {
57 return Promise.resolve(queued)
58 }
59 return withTimeout(new Promise(resolve => this.waiters.push(resolve)), label)
60 }
61
62 send(value: unknown): void {
63 this.ws.send(JSON.stringify(value))

Callers 2

expectInitializeFunction · 0.45
client.test.tsFile · 0.45

Calls 3

shiftMethod · 0.80
resolveMethod · 0.80
withTimeoutFunction · 0.70

Tested by

no test coverage detected