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

Function layerProtocolWebsocket

packages/effect/src/unstable/rpc/RpcServer.ts:956–964  ·  view source on GitHub ↗
(options: {
  readonly path: HttpRouter.PathInput
})

Source from the content-addressed store, hash-verified

954 * @since 4.0.0
955 */
956export const layerProtocolWebsocket = (options: {
957 readonly path: HttpRouter.PathInput
958}): Layer.Layer<
959 Protocol,
960 never,
961 RpcSerialization.RpcSerialization | HttpRouter.HttpRouter
962> => {
963 return Layer.effect(Protocol)(makeProtocolWebsocket(options))
964}
965
966/**
967 * Creates an HTTP request/response server `Protocol` together with an HTTP

Callers 1

layerHttpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected