Skip to main content

Class: Socket

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

Extends

  • BaseClient

Constructors

new Socket()

new Socket(parent?, _id?): Socket

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

Parameters

parent?

parent.ctx?: Context

parent.queryTree?: QueryTree[]

_id?: SocketID

Returns

Socket

Overrides

BaseClient.constructor

Methods

id()

id(): Promise<SocketID>

A unique identifier for this Socket.

Returns

Promise<SocketID>