Skip to main content

Dagger NodeJS SDK

api/client.gen.Socket

A Unix or TCP/IP socket that can be mounted into a container.

Hierarchy

  • BaseClient

    Socket

Constructors

constructor

new Socket(parent?, _id?): Socket

Constructor is used for internal usage only, do not create object from it.

Parameters

NameType
parent?Object
parent.ctxContext
parent.queryTree?QueryTree[]
_id?SocketID

Returns

Socket

Overrides

BaseClient.constructor

Properties

_id

Private Optional Readonly _id: SocketID = undefined

Methods

id

id(): Promise<SocketID>

A unique identifier for this Socket.

Returns

Promise<SocketID>