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

Function layerWebSocket

packages/platform-node-shared/src/NodeSocketServer.ts:240–246  ·  view source on GitHub ↗
(
  options: WS.ServerOptions
)

Source from the content-addressed store, hash-verified

238 * @category layers
239 */
240export const layerWebSocket = (
241 options: WS.ServerOptions
242): Layer.Layer<SocketServer.SocketServer, SocketServer.SocketServerError> =>
243 Layer.scoped(
244 SocketServer.SocketServer,
245 makeWebSocket(options)
246 )
247
248const reportUnhandledError = <E>(cause: Cause<E>) =>
249 Effect.withFiberRuntime<void>((fiber) => {

Callers

nothing calls this directly

Calls 1

makeWebSocketFunction · 0.85

Tested by

no test coverage detected