effect-io-ai

Package: @effect/platform-node-shared
Module: NodeSocket

NodeSocket.layerNet

Provides a Socket.Socket by opening a TCP connection with the supplied Node net connection options.

Signature

declare const layerNet: (options: Net.NetConnectOpts) => Layer.Layer<Socket.Socket, Socket.SocketError>

Source

Since v4.0.0