TransportDisconnectedEvent class
Event to be included when disconnection events are fired.
Constructors
Transport |
Indicates a transport disconnected with the reason provided via the constructor. |
Properties
Empty | A new and empty TransportDisconnectedEvent. |
reason | The reason the disconnection event fired, in plain text. |
Constructor Details
TransportDisconnectedEvent(string)
Indicates a transport disconnected with the reason provided via the constructor.
new TransportDisconnectedEvent(reason?: string)
Parameters
- reason
-
string
The reason the disconnection event fired, in plain text.
Remarks
This class is used for communicating disconnection events between the PayloadReceiver and PayloadSender.
Property Details
Empty
A new and empty TransportDisconnectedEvent.
static Empty: TransportDisconnectedEvent
Property Value
reason
The reason the disconnection event fired, in plain text.
reason: string
Property Value
string