Object-form options for unix / http / ws / Node.listenLocal.
Prefer positional address shorthand on each protocol (Node.http(serves, 3000),
Node.unix(serves, "/tmp/x.sock")) when you only need a bind address — see
HttpListenArg / WsListenArg / IpcListenArg.
Source src/internal/nodeCore.ts:3321 lines
export type type NamelessListenOptions = {
readonly path?: HttpRouter.PathInput
readonly serialization?: Layer.Layer<RpcSerialization.RpcSerialization>
readonly health?: {
readonly path?: HttpRouter.PathInput
}
readonly node?:
| string
| {
readonly key: string
}
readonly unlink?: boolean
readonly onConflict?: OnConflict
readonly port?: number
readonly url?: string
readonly assumeToken?:
| string
| Redacted.Redacted<string>
readonly onYield?: Effect.Effect<boolean>
}
Object-form options for
unix
/
http
/
ws
/
Node.listenLocal
.
Prefer positional address shorthand on each protocol (Node.http(serves, 3000),
Node.unix(serves, "/tmp/x.sock")) when you only need a bind address — see
NamelessListenOptions = type ListenOptions = {
readonly path?: HttpRouter.PathInput
readonly serialization?: Layer.Layer<RpcSerialization.RpcSerialization>
readonly health?: {
readonly path?: HttpRouter.PathInput
}
readonly node?:
| string
| {
readonly key: string
}
readonly unlink?: boolean
readonly onConflict?: OnConflict
readonly port?: number
readonly url?: string
readonly assumeToken?:
| string
| Redacted.Redacted<string>
readonly onYield?: Effect.Effect<boolean>
}
Shared options for
unix
/
http
/
ws
(and low-level *Server) —
rpc path / health / ipc unlink, plus optional fixed listen address for nameless Http/Ws.
ListenOptions;