Example #1
0
 /// <summary>
 /// Closes the WebSocket connection or connection attempt, if any.
 /// If the connection is already closed, this method does nothing.
 /// </summary>
 /// <param name="code">
 /// A numeric value indicating the status code explaining why the connection is being closed.
 /// </param>
 /// <param name="reason">
 /// A human-readable string explaining why the connection is closing. This string
 /// must be no longer than 123 bytes of UTF-8 text (not characters).
 /// </param>
 public extern void Close(CloseEvent.StatusCode code, string reason);
Example #2
0
 /// <summary>
 /// Closes the WebSocket connection or connection attempt, if any.
 /// If the connection is already closed, this method does nothing.
 /// </summary>
 /// <param name="code">
 /// A numeric value indicating the status code explaining why the connection is being closed.
 /// </param>
 public extern void Close(CloseEvent.StatusCode code);