/// <summary> /// Stops a connection with a specific client asynchronous. Can provide reason. /// </summary> /// <param name="clientId">Specific client to close connection with.</param> /// <param name="reason">Possible reason to close the connection.</param> /// <returns>True when succesfully closed.</returns> public async Task <bool> StopClientAsync(string clientId, string reason = "") { if (reason.Length > 0) { return(await _WebsocketHandler.StopClient(clientId, reason)); } else { return(await _WebsocketHandler.StopClient(clientId)); } }