Server.DisconnectClient Method
Namespace: Riptide
Assembly: RiptideNetworking.dll
Overloads
DisconnectClient(ushort, Message) | Disconnects a specific client. |
DisconnectClient(Connection, Message) | Disconnects the given client. |
DisconnectClient(ushort, Message)
Disconnects a specific client.
public void DisconnectClient(ushort id, Message message = null)
Parameters
ushort | id |
The numeric ID of the client to disconnect. |
Message | message |
Data that should be sent to the client being disconnected. Use Create() to get an empty message instance. |
DisconnectClient(Connection, Message)
Disconnects the given client.
public void DisconnectClient(Connection client, Message message = null)
Parameters
Connection | client |
The client to disconnect. |
Message | message |
Data that should be sent to the client being disconnected. Use Create() to get an empty message instance. |