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

NodeSocket.ts overview

Since v1.0.0


Exports Grouped by Category


constructors

fromDuplex

Signature

declare const fromDuplex: <RO>(
  open: Effect.Effect<Duplex, Socket.SocketError, RO>
) => Effect.Effect<Socket.Socket, never, Exclude<RO, Scope.Scope>>

Source

Since v1.0.0

makeNet

Signature

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

Source

Since v1.0.0

makeNetChannel

Signature

declare const makeNetChannel: <IE = never>(
  options: Net.NetConnectOpts
) => Channel.Channel<
  Chunk.Chunk<Uint8Array>,
  Chunk.Chunk<Uint8Array | string | Socket.CloseEvent>,
  Socket.SocketError | IE,
  IE,
  void,
  unknown
>

Source

Since v1.0.0

layers

layerNet

Signature

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

Source

Since v1.0.0

tags

NetSocket

Signature

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

Source

Since v1.0.0

NetSocket (interface)

Signature

export interface NetSocket {
  readonly _: unique symbol
}

Source

Since v1.0.0