/// <summary>
 ///     Sends a disconnect message to the end point.
 /// </summary>
 protected abstract ValueTask <bool> SendDisconnect(MessageWriter writer);
Example #2
0
 /// <summary>
 /// For times when you want to force the disconnect handler to fire as well as close it.
 /// If you only want to close it, just use Dispose.
 /// </summary>
 public abstract ValueTask Disconnect(string reason, MessageWriter writer = null);