MCPcopy Index your code
hub / github.com/Effect-TS/effect / emit

Function emit

packages/platform/src/Socket.ts:202–206  ·  view source on GitHub ↗
(chunk: Chunk.Chunk<Uint8Array | string | CloseEvent>)

Source from the content-addressed store, hash-verified

200 const writeScope = yield* Scope.fork(scope, ExecutionStrategy.sequential)
201 const write = yield* Scope.extend(self.writer, writeScope)
202 function* emit(chunk: Chunk.Chunk<Uint8Array | string | CloseEvent>) {
203 for (const data of chunk) {
204 yield* write(data)
205 }
206 }
207 const input: AsyncProducer.AsyncInputProducer<IE, Chunk.Chunk<Uint8Array | string | CloseEvent>, unknown> = {
208 awaitRead: () => Effect.void,
209 emit(chunk) {

Callers 3

onMessageFunction · 0.50
listenFunction · 0.50
onMessageFunction · 0.50

Calls 2

failCauseMethod · 0.80
writeFunction · 0.70

Tested by

no test coverage detected