Variable
SinterClientState
The lifecycle states of a SinterClient.
A client moves from new to connecting to connected, and finally to
closing and closed. A failed connection attempt returns it to new, so
connect() can be called again. A closed client cannot be reused.
const SinterClientState: {
readonly Closed: "closed";
readonly Closing: "closing";
readonly Connected: "connected";
readonly Connecting: "connecting";
readonly New: "new";
}Defined in packages/driver/src/client.ts:125, packages/driver/src/client.ts:139
Properties#
Closed
#readonly Closed: "closed"Closed for good; the client cannot be reused.
Defined in packages/driver/src/client.ts:135
Closing
#readonly Closing: "closing"close() is in progress.
Defined in packages/driver/src/client.ts:133
Connected
#readonly Connected: "connected"Connected and ready for commands.
Defined in packages/driver/src/client.ts:131
Connecting
#readonly Connecting: "connecting"A connection attempt is in progress.
Defined in packages/driver/src/client.ts:129
New
#readonly New: "new"Created, not yet connected. Also the state after a failed connection attempt.
Defined in packages/driver/src/client.ts:127