[Modify] Edit it
This commit is contained in:
parent
de9ac48b40
commit
e2be83657f
@ -198,28 +198,47 @@ namespace WebSocketSharp
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="WebSocket"/> class with
|
/// Initializes a new instance of the <see cref="WebSocket"/> class with
|
||||||
/// the specified WebSocket URL and subprotocols.
|
/// <paramref name="url"/> and <paramref name="protocols"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="url">
|
/// <param name="url">
|
||||||
/// A <see cref="string"/> that represents the WebSocket URL to connect.
|
/// A <see cref="string"/> that specifies the URL of the WebSocket
|
||||||
|
/// server to connect.
|
||||||
/// </param>
|
/// </param>
|
||||||
/// <param name="protocols">
|
/// <param name="protocols">
|
||||||
/// An array of <see cref="string"/> that contains the WebSocket subprotocols if any.
|
/// <para>
|
||||||
/// Each value of <paramref name="protocols"/> must be a token defined in
|
/// An array of <see cref="string"/> that specifies the names of
|
||||||
/// <see href="http://tools.ietf.org/html/rfc2616#section-2.2">RFC 2616</see>.
|
/// the subprotocols if necessary.
|
||||||
|
/// </para>
|
||||||
|
/// <para>
|
||||||
|
/// Each value of the array must be a token defined in
|
||||||
|
/// <see href="http://tools.ietf.org/html/rfc2616#section-2.2">
|
||||||
|
/// RFC 2616</see>.
|
||||||
|
/// </para>
|
||||||
/// </param>
|
/// </param>
|
||||||
/// <exception cref="ArgumentNullException">
|
/// <exception cref="ArgumentNullException">
|
||||||
/// <paramref name="url"/> is <see langword="null"/>.
|
/// <paramref name="url"/> is <see langword="null"/>.
|
||||||
/// </exception>
|
/// </exception>
|
||||||
/// <exception cref="ArgumentException">
|
/// <exception cref="ArgumentException">
|
||||||
/// <para>
|
/// <para>
|
||||||
/// <paramref name="url"/> is invalid.
|
/// <paramref name="url"/> is an empty string.
|
||||||
/// </para>
|
/// </para>
|
||||||
/// <para>
|
/// <para>
|
||||||
/// -or-
|
/// -or-
|
||||||
/// </para>
|
/// </para>
|
||||||
/// <para>
|
/// <para>
|
||||||
/// <paramref name="protocols"/> is invalid.
|
/// <paramref name="url"/> is an invalid WebSocket URL string.
|
||||||
|
/// </para>
|
||||||
|
/// <para>
|
||||||
|
/// -or-
|
||||||
|
/// </para>
|
||||||
|
/// <para>
|
||||||
|
/// <paramref name="protocols"/> contains a value that is not a token.
|
||||||
|
/// </para>
|
||||||
|
/// <para>
|
||||||
|
/// -or-
|
||||||
|
/// </para>
|
||||||
|
/// <para>
|
||||||
|
/// <paramref name="protocols"/> contains a value twice.
|
||||||
/// </para>
|
/// </para>
|
||||||
/// </exception>
|
/// </exception>
|
||||||
public WebSocket (string url, params string[] protocols)
|
public WebSocket (string url, params string[] protocols)
|
||||||
|
Loading…
Reference in New Issue
Block a user