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

NodeSocket overview

Added in v1.0.0


Table of contents


constructors

fromNetSocket

Signature

export declare const fromNetSocket: (
  open: Effect.Effect<Net.Socket, Socket.SocketError, Scope.Scope>
) => Effect.Effect<Socket.Socket>

Added in v1.0.0

makeNet

Signature

export declare const makeNet: (
  options: Net.NetConnectOpts
) => Effect.Effect<Socket.Socket, Socket.SocketError, Scope.Scope>

Added in v1.0.0

makeNetChannel

Signature

export declare const makeNetChannel: <IE = never>(
  options: Net.NetConnectOpts
) => Channel.Channel<Chunk.Chunk<Uint8Array>, Chunk.Chunk<any>, any, IE, void, unknown>

Added in v1.0.0

layers

layerNet

Signature

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

Added in v1.0.0

tags

NetSocket

Signature

export declare const NetSocket: Context.Tag<NetSocket, Net.Socket>

Added in v1.0.0

NetSocket (interface)

Signature

export interface NetSocket {
  readonly _: unique symbol
}

Added in v1.0.0