NodeSocket overview
Added in v1.0.0
Table of contents
constructors
fromDuplex
Signature
export declare const fromDuplex: <RO>(
open: Effect.Effect<Duplex, Socket.SocketError, RO>
) => Effect.Effect<Socket.Socket, never, Exclude<RO, Scope.Scope>>
Added in v1.0.0
makeNet
Signature
export declare const makeNet: (options: Net.NetConnectOpts) => Effect.Effect<Socket.Socket, Socket.SocketError>
Added in v1.0.0
makeNetChannel
Signature
export 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
>
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