UpdateConnectionState

A client’s connection state was changed.

client.on("connectionState", (ctx) => {
  console.log("The client's connection state is now:", ctx.connectionState);
});

Properties

connectionState: ConnectionState
DISCRIMINATOR

The client’s new connection state