예제 #1
0
 /// <summary>
 /// Stops all connections with all clients asynchronous. Can provide reason.
 /// </summary>
 /// <param name="reason">Possible reason to close the connection.</param>
 /// <returns>True when succesfully closed.</returns>
 public async Task <bool> StopAllAsync(string reason = "")
 {
     if (reason.Length > 0)
     {
         return(await _WebsocketHandler.StopAll(reason));
     }
     else
     {
         return(await _WebsocketHandler.StopAll());
     }
 }