Class EventBridge.UserDisconnectEvent
Event triggered when a user disconnects from the server.
public record EventBridge.UserDisconnectEvent : Event<EventBridge.UserDisconnectEvent>, IEvent, IEquatable<Event>, IEquatable<Event<EventBridge.UserDisconnectEvent>>, IEquatable<EventBridge.UserDisconnectEvent>
- Inheritance
-
EventBridge.UserDisconnectEvent
- Implements
- Inherited Members
- Extension Methods
Constructors
UserDisconnectEvent(ServerClient, NetConnectionId, ConnectionStatusChangeReason, string)
Event triggered when a user disconnects from the server.
public UserDisconnectEvent(ServerBootstrapSystem.ServerClient ServerClient, NetConnectionId NetConnectionId, ConnectionStatusChangeReason ConnectionStatusReason, string ExtraData)
Parameters
ServerClient
ServerBootstrapSystem.ServerClientThe server client representing the user connection.
NetConnectionId
NetConnectionIdThe network connection ID of the user.
ConnectionStatusReason
ConnectionStatusChangeReasonThe reason for the connection status change.
ExtraData
stringOptional extra data related to the disconnection.
Properties
ConnectionStatusReason
The reason for the connection status change.
public ConnectionStatusChangeReason ConnectionStatusReason { get; init; }
Property Value
- ConnectionStatusChangeReason
ExtraData
Optional extra data related to the disconnection.
public string ExtraData { get; init; }
Property Value
NetConnectionId
The network connection ID of the user.
public NetConnectionId NetConnectionId { get; init; }
Property Value
- NetConnectionId
ServerClient
The server client representing the user connection.
public ServerBootstrapSystem.ServerClient ServerClient { get; init; }
Property Value
- ServerBootstrapSystem.ServerClient