Skip to content

Closing

Defined in: src/packets/Closing.ts:8

When your websocket connection is being closed by the server, you may receive a Closing packet.

https://docs.reconnected.cc/chatbox/websocket.html#closing-packet

closeReason: string

Defined in: src/packets/Closing.ts:10

The reason your connection is being closed.


ok: boolean

Defined in: src/packets/Data.ts:2

Data.ok


reason: string

Defined in: src/packets/Closing.ts:13

A human-readable message describing the close reason.


type: string

Defined in: src/packets/Data.ts:3

Data.type