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

Function layerProtocolWebsocketRouter

packages/rpc/src/RpcServer.ts:941–944  ·  view source on GitHub ↗
(options: {
  readonly path: HttpLayerRouter.PathInput
})

Source from the content-addressed store, hash-verified

939 * @category protocol
940 */
941export const layerProtocolWebsocketRouter = (options: {
942 readonly path: HttpLayerRouter.PathInput
943}): Layer.Layer<Protocol, never, RpcSerialization.RpcSerialization | HttpLayerRouter.HttpRouter> =>
944 Layer.effect(Protocol, makeProtocolWebsocketRouter(options))
945
946/**
947 * @since 1.0.0

Callers 1

layerHttpRouterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected