Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CloseReasonImpl

Defined reason code and message used to report client close conditions.

Hierarchy

  • CloseReasonImpl

Index

Constructors

Properties

Methods

Constructors

constructor

  • new CloseReasonImpl(id: number, message: string, canReconnect: boolean): CloseReasonImpl
  • Create a CloseReason

    Parameters

    • id: number

      the close reason's id

    • message: string

      the close reason's description

    • canReconnect: boolean

      whether the session can reconnect from this state

    Returns CloseReasonImpl

Properties

canReconnect

canReconnect: boolean

Whether the session can reconnect from this state

id

id: number

The close reason's id

message

message: string

The close reason's description

Methods

toString

  • toString(): string
  • Convert to string

    Returns string

    string representation of the close reason

Copyright © 2025 DiffusionData Ltd. All Rights Reserved.