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

Method runRaw

packages/platform-bun/src/internal/httpServer.ts:444–449  ·  view source on GitHub ↗
(data: Uint8Array | string)

Source from the content-addressed store, hash-verified

442 const set = yield* FiberSet.make<any, E>()
443 const run = yield* FiberSet.runtime(set)<R>()
444 function runRaw(data: Uint8Array | string) {
445 const result = handler(data)
446 if (Effect.isEffect(result)) {
447 run(result)
448 }
449 }
450 ws.data.run = runRaw
451 ws.data.buffer.forEach(runRaw)
452 ws.data.buffer.length = 0

Callers 3

HttpServer.test.tsFile · 0.45
toChannelMapFunction · 0.45
HttpServer.test.tsFile · 0.45

Calls 2

handlerFunction · 0.70
runFunction · 0.50

Tested by

no test coverage detected