websocket-sharp
System.Object
Provides a set of static methods for the websocket-sharp.
To be added.
Method
WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext
A that provides a TCP connection to accept a WebSocket connection.
A that indicates a secure connection or not. (true indicates a secure connection.)
Accepts a WebSocket connection by the .
A that contains a WebSocket connection.
To be added.
is .
Method
System.Void
A that provides a TCP connection to accept a WebSocket connection.
A that indicates a secure connection or not. (true indicates a secure connection.)
An Action<TcpListenerWebSocketContext> delegate that contains the method(s) that is called when an asynchronous operation completes.
Accepts a WebSocket connection asynchronously by the .
To be added.
is .
Method
System.Boolean
A that contains the entries.
A that contains the key of the entry to find.
Determines whether the specified contains the entry
with the specified .
true if contains the entry with ;
otherwise, false.
To be added.
Method
System.Boolean
System.ParamArray
A to test.
An array of that contains characters to find.
Determines whether the specified contains any of characters
in the specified array of .
true if contains any of ; otherwise, false.
To be added.
Method
System.Boolean
A that contains the entries.
A that contains the key of the entry to find.
A that contains the value of the entry to find.
Determines whether the specified contains the entry
with the specified both and .
true if contains the entry with both and ;
otherwise, false.
To be added.
Method
System.Void
An to emit.
An that emits the .
An that contains no event data.
Emit the specified delegate if is not .
To be added.
Method
System.Void
System.EventArgs
The type of the event data generated by the event.
An EventHandler<TEventArgs> to emit.
An that emits the .
A TEventArgs that contains the event data.
Emit the specified EventHandler<TEventArgs> delegate if is not .
To be added.
Method
System.Boolean
An to compare.
A to compare.
A List<byte> to save the as .
Determines whether the specified equals the specified as .
And save this specified as to the specified List<byte>.
true if the parameter equals the parameter as ; otherwise, false.
To be added.
Is thrown when the parameter passed to a method is invalid because it is outside the allowable range of values as .
Method
System.String
A that contains the URI to get the absolute path from.
Gets the absolute path from the specified .
A that contains the absolute path if got successfully; otherwise, .
To be added.
Method
WebSocketSharp.Net.CookieCollection
A that contains a collection of the HTTP Headers.
true if gets from the response ;
from the request , false.
Gets the collection of cookies from the specified .
A that receives a collection of the HTTP Cookies.
To be added.
Method
System.String
One of values that contains an HTTP status code.
Gets the description of the HTTP status code using the specified .
A that contains the description of the HTTP status code.
To be added.
Method
System.String
A that contains a pair of name and value separated by a separator string.
A that contains a separator string.
Gets the name from the specified that contains a pair of name and value
separated by a separator string.
A that contains the name if any; otherwise, null.
To be added.
Method
System.Collections.Generic.KeyValuePair<System.String,System.String>
A that contains a pair of name and value are separated by a separator string.
A that contains a separator string.
Gets the name and value from the specified that contains a pair of name and value are separated by a separator string.
A KeyValuePair<string, string> that contains the name and value if any.
To be added.
Method
System.String
An that contains an HTTP status code.
Gets the description of the HTTP status code using the specified .
A that contains the description of the HTTP status code.
To be added.
Method
System.String
A that contains a pair of name and value separated by a separator string.
A that contains a separator string.
Gets the value from the specified that contains a pair of name and value
separated by a separator string.
A that contains the value if any; otherwise, null.
To be added.
Method
System.Boolean
A to test.
Determines whether the specified is in the allowable range of
the WebSocket close status code.
true if is in the allowable range of the WebSocket close status code; otherwise, false.
Not allowable ranges are the followings.
-
Numbers in the range 0-999 are not used.
-
Numbers which are greater than 4999 are out of the reserved close status code ranges.
Method
System.Boolean
A to test.
Determines whether the specified is empty.
true if is empty; otherwise, false.
To be added.
Method
System.Boolean
A to test.
A that contains character to find.
Determines whether the specified is enclosed in the specified .
true if is enclosed in ; otherwise, false.
To be added.
Method
System.Boolean
A to test.
Determines whether the specified is host (this computer architecture) byte order.
true if the parameter is host byte order; otherwise, false.
To be added.
Method
System.Boolean
A to test.
Determines whether the specified represents a local IP address.
true if represents a local IP address; otherwise, false.
To be added.
is .
Method
System.Boolean
A to test.
Determines whether the specified is or empty.
true if the parameter is or empty; otherwise, false.
To be added.
Method
System.Boolean
A to test.
Determines whether the specified is predefined scheme.
true if the parameter is the predefined scheme; otherwise, false.
To be added.
Method
System.Boolean
A that contains an HTTP request information.
A that contains a protocol name.
Determines whether the specified is the HTTP Upgrade request
to switch to the specified .
true if the specified is the HTTP Upgrade request
to switch to the specified ; otherwise, false.
To be added.
is .
-or-
is .
is .
Method
System.Boolean
A to test.
A that receives a message if the is invalid.
Determines whether the specified is valid absolute path.
true if the parameter is valid absolute path; otherwise, false.
To be added.
Method
System.Boolean
A to test.
Determines whether the specified is a URI string.
true if the parameter is maybe a URI string; otherwise, false.
To be added.
Method
System.Byte[]
A that contains the data to read.
An that contains the number of bytes to read.
Reads a block of bytes from the specified
and returns the read data in an array of .
An array of that receives the read data.
To be added.
Method
System.Byte[]
A that contains the data to read.
A that contains the number of bytes to read.
Reads a block of bytes from the specified
and returns the read data in an array of .
An array of that receives the read data.
To be added.
Method
T[]
The type of elements in the .
An array of T that contains the data to retrieve a sub-array.
An that contains the zero-based starting position of a sub-array in the .
An that contains the number of elements to retrieve a sub-array.
Retrieves a sub-array from the specified . A sub-array starts at the specified element position.
An array of T that receives a sub-array, or an empty array of T if any problems with the parameters.
To be added.
Method
System.Void
An is the number of times to execute.
An delegate that references the method(s) to execute.
Executes the specified delegate times.
To be added.
Method
System.Void
An is the number of times to execute.
An Action<int> delegate that references the method(s) to execute.
An parameter to pass to the method(s) is the zero-based count of iteration.
Executes the specified Action<int> delegate times.
To be added.
Method
System.Void
A is the number of times to execute.
An delegate that references the method(s) to execute.
Executes the specified delegate times.
To be added.
Method
System.Void
A is the number of times to execute.
An Action<long> delegate that references the method(s) to execute.
A parameter to pass to the method(s) is the zero-based count of iteration.
Executes the specified Action<long> delegate times.
To be added.
Method
System.Void
A is the number of times to execute.
An delegate that references the method(s) to execute.
Executes the specified delegate times.
To be added.
Method
System.Void
A is the number of times to execute.
An Action<uint> delegate that references the method(s) to execute.
A parameter to pass to the method(s) is the zero-based count of iteration.
Executes the specified Action<uint> delegate times.
To be added.
Method
System.Void
A is the number of times to execute.
An delegate that references the method(s) to execute.
Executes the specified delegate times.
To be added.
Method
System.Void
A is the number of times to execute.
An Action<ulong> delegate that references the method(s) to execute.
A parameter to pass to this method(s) is the zero-based count of iteration.
Executes the specified Action<ulong> delegate times.
To be added.
Method
T
DefaultConstructorConstraint
NotNullableValueTypeConstraint
System.ValueType
The type of the return. The T must be a value type.
An array of to convert.
A that indicates the byte order of .
Converts the specified array of to the specified type data.
A T converted from , or a default value of T
if is an empty array of
or if the type of T isn't , , ,
, , , ,
, or .
To be added.
is .
Method
System.Byte[]
DefaultConstructorConstraint
NotNullableValueTypeConstraint
System.ValueType
The type of . The T must be a value type.
A T to convert.
A that indicates the byte order of the return.
Converts the specified to an array of .
An array of converted from .
To be added.
Method
System.Byte[]
An array of to convert.
A that indicates the byte order of .
Converts the order of the specified array of to the host byte order.
An array of converted from .
To be added.
is .
Method
System.String
The type of elements in .
An array of T to convert.
A that contains a separator string.
Converts the specified to a that concatenates
the each element of across the specified .
A converted from , or a
if the length of is zero.
To be added.
is .
Method
System.Uri
A to convert.
Converts the specified to a object.
A converted from the parameter, or
if the is or .
To be added.
Method
System.Boolean
A that contains a WebSocket URI.
When this method returns, contains a created WebSocket if the parameter is valid WebSocket URI; otherwise, .
When this method returns, contains a error message if the parameter is invalid WebSocket URI; otherwise, String.Empty.
Tries to create a new WebSocket using the specified .
true if the WebSocket was successfully created; otherwise, false.
To be added.
Is thrown when the parameter passed to a method is invalid because it is .
Method
System.String
A to decode.
URL-decodes the specified .
A that receives a decoded string, or the parameter
if the is or .
To be added.
Method
System.String
A to encode.
URL-encodes the specified .
A that receives a encoded string, or the parameter
if the is or .
To be added.
Method
System.Void
A that contains a network stream to write a content data.
An array of that contains a content data to write.
Writes the specified content data using the specified .
To be added.
Is thrown when the parameter passed to a method is invalid because it is .