MCPcopy Create free account
hub / github.com/Effect-TS/effect / runRaw

Method runRaw

packages/platform/bun/src/BunHttpServer.ts:585–590  ·  view source on GitHub ↗
(data: Uint8Array | string)

Source from the content-addressed store, hash-verified

583 const set = yield* FiberSet.make<any, E>()
584 const run = yield* FiberSet.runtime(set)<R>()
585 function runRaw(data: Uint8Array | string) {
586 const result = handler(data)
587 if (Effect.isEffect(result)) {
588 run(result)
589 }
590 }
591 ws.data.run = runRaw
592 ws.data.buffer.forEach(runRaw)
593 ws.data.buffer.length = 0

Callers 2

NodeSocket.test.tsFile · 0.45

Calls 2

handlerFunction · 0.70
runFunction · 0.70

Tested by

no test coverage detected