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>>
Since v1.0.0
makeNet
Signature
declare const makeNet: (options: Net.NetConnectOpts) => Effect.Effect<Socket.Socket, Socket.SocketError>
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
>
Since v1.0.0
layers
layerNet
Signature
declare const layerNet: (options: Net.NetConnectOpts) => Layer.Layer<Socket.Socket, Socket.SocketError>
Since v1.0.0
tags
NetSocket
Signature
declare const NetSocket: Context.Tag<NetSocket, Net.Socket>
Since v1.0.0
NetSocket (interface)
Signature
export interface NetSocket {
readonly _: unique symbol
}
Since v1.0.0