Skip to content

API Variable ConnectionState

github-actions[bot] edited this page Nov 24, 2026 · 1 revision

Variable: ConnectionState

const ConnectionState: object;

Defined in: src/engine/net/connection.ts:32

Values of Connection's state field.

Type Declaration

closing

readonly closing: 2 = 2;

Closed this frame; the node is destroyed at the end of the frame.

connecting

readonly connecting: 0 = 0;

Client only: waiting for the transport to open and the server to accept the handshake.

open

readonly open: 1 = 1;

Handshake accepted: messages flow both ways.

Clone this wiki locally