Skip to content

NodeSocket

6 exports Added in v1.0.0 Source

Constructors

fromDuplex

Added in v1.0.0 Source

Signature

declare function fromDuplex<RO>(
  open: Effect<Duplex, SocketError, RO>,
  options?: {
    readonly openTimeout?: any;
  },
): Effect<Socket, never, Exclude<RO, Scope>>;

makeNet

Added in v1.0.0 Source

Signature

declare function makeNet(options: any): Effect<Socket, SocketError>;

Signature

declare function makeNetChannel<IE = never>(
  options: NetConnectOpts,
): Channel<Chunk<Uint8Array<ArrayBufferLike>>, Chunk<any>, any, IE, void, unknown>;

Layers

layerNet

Added in v1.0.0 Source

Signature

declare function layerNet(options: NetConnectOpts): Layer<Socket, SocketError>;

Tags

NetSocket

Added in v1.0.0 Source

Signature

declare const NetSocket: Tag<NetSocket, Socket>;

NetSocket interface

Added in v1.0.0 Source

Signature

interface NetSocket {
  readonly _: typeof _;
}