added a new method 'disconnectClient' in 'ServerSender' interface

This commit is contained in:
Daniel Grigencha
2024-12-01 18:21:54 +01:00
parent eb54cfbc80
commit bf38a7e00c

View File

@@ -21,4 +21,11 @@ public interface ServerSender {
* @param message as the message which will be sent to all players as a ServerMessage.
*/
void broadcast(ServerMessage message);
/**
* This method will be used to disconnect the client depending on the given id parameter.
*
* @param id as the connection id of the client as an Integer.
*/
void disconnectClient(int id);
}