Skip to main content Link Search Menu Expand Document (external link)

NodeSocket overview

Added in v1.0.0


Table of contents


exports

From “@effect/platform-node-shared/NodeSocket”

Re-exports all named exports from the “@effect/platform-node-shared/NodeSocket” module.

Signature

export * from "@effect/platform-node-shared/NodeSocket"

Added in v1.0.0

layers

layerWebSocket

Signature

export declare const layerWebSocket: (
  url: string,
  options?: { readonly closeCodeIsError?: (code: number) => boolean }
) => Layer.Layer<Socket.Socket>

Added in v1.0.0

layerWebSocketConstructor

Signature

export declare const layerWebSocketConstructor: Layer.Layer<Socket.WebSocketConstructor>

Added in v1.0.0