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

Function send

packages/effect/src/graphql/GraphQLProtocol.ts:805–808  ·  view source on GitHub ↗
(message: WsMessage)

Source from the content-addressed store, hash-verified

803 let idleGeneration = 0
804
805 const send = (message: WsMessage) =>
806 writer.write(JSON.stringify(message)).pipe(
807 Effect.mapError((cause) => connectionError(Cause.fail(cause)))
808 )
809
810 const lose = (conn: Connection, error: TransportError) => {
811 if (conn.error !== undefined) return

Callers 4

handleFunction · 0.70
makeWebSocketFunction · 0.70
releaseFunction · 0.70
operationFunction · 0.70

Calls 4

connectionErrorFunction · 0.85
pipeMethod · 0.65
writeMethod · 0.65
failMethod · 0.65

Tested by

no test coverage detected