Skip to content
jjrdk edited this page Nov 7, 2014 · 1 revision

WebSocketSharp

T:WebSocketSharp.Ext

Provides a set of static methods for websocket-sharp.


M:WebSocketSharp.Ext.Contains(System.String,System.Char[])

Determines whether the specified contains any of characters in the specified array of .

Returns: if contains any of ; otherwise, .

Name Description
value: A [[
Name Description
----- ------
chars: An array of [[

M:WebSocketSharp.Ext.Contains(System.Collections.Specialized.NameValueCollection,System.String)

Determines whether the specified contains the entry with the specified .

Returns: if contains the entry with ; otherwise, .

Name Description
collection: A [[
Name Description
----- ------
name: A [[

M:WebSocketSharp.Ext.Contains(System.Collections.Specialized.NameValueCollection,System.String,System.String)

Determines whether the specified contains the entry with the specified both and .

Returns: if contains the entry with both and ; otherwise, .

Name Description
collection: A [[
Name Description
----- ------
name: A [[
Name Description
----- ------
value: A [[

M:WebSocketSharp.Ext.Emit(System.EventHandler,System.Object,System.EventArgs)
Name Description
eventHandler: A [[
Name Description
----- ------
sender: An [[
Name Description
----- ------
e: A [[

M:WebSocketSharp.Ext.Emit1(System.EventHandler{0},System.Object,``0)
Name Description
eventHandler: An to emit.
Name Description
----- ------
sender: An [[
Name Description
----- ------
e: A that represents the event data.

M:WebSocketSharp.Ext.GetCookies(System.Collections.Specialized.NameValueCollection,System.Boolean)

Gets the collection of the HTTP cookies from the specified HTTP .

Returns: A that receives a collection of the HTTP cookies.

Name Description
headers: A [[
Name Description
----- ------
response: if is a collection of the response headers; otherwise, .

M:WebSocketSharp.Ext.GetDescription(WebSocketSharp.Net.HttpStatusCode)

Gets the description of the specified HTTP status .

Returns: A that represents the description of the HTTP status code.

Name Description
code: One of [[

M:WebSocketSharp.Ext.GetStatusDescription(System.Int32)

Gets the description of the specified HTTP status .

Returns: A that represents the description of the HTTP status code.

Name Description
code: An [[

M:WebSocketSharp.Ext.IsCloseStatusCode(System.UInt16)

Determines whether the specified is in the allowable range of the WebSocket close status code.

Not allowable ranges are the following:

Returns: if is in the allowable range of the WebSocket close status code; otherwise, .

Name Description
value: A [[

M:WebSocketSharp.Ext.IsEnclosedIn(System.String,System.Char)

Determines whether the specified is enclosed in the specified .

Returns: if is enclosed in ; otherwise, .

Name Description
value: A [[
Name Description
----- ------
c: A [[

M:WebSocketSharp.Ext.IsHostOrder(WebSocketSharp.ByteOrder)

Determines whether the specified is host (this computer architecture) byte order.

Returns: if is host byte order; otherwise, .

Name Description
order: One of the [[

M:WebSocketSharp.Ext.IsLocal(System.Net.IPAddress)

Determines whether the specified represents the local IP address.

Returns: if represents the local IP address; otherwise, .

Name Description
address: A [[

M:WebSocketSharp.Ext.IsNullOrEmpty(System.String)
Name Description
value: A [[

M:WebSocketSharp.Ext.IsPredefinedScheme(System.String)

Determines whether the specified is a predefined scheme.

Returns: if is a predefined scheme; otherwise, .

Name Description
value: A [[

M:WebSocketSharp.Ext.MaybeUri(System.String)

Determines whether the specified is a URI string.

Returns: if may be a URI string; otherwise, .

Name Description
value: A [[

M:WebSocketSharp.Ext.SubArray1(0[],System.Int32,System.Int32)

Retrieves a sub-array from the specified . A sub-array starts at the specified element position in .

Returns: An array of T that receives a sub-array, or an empty array of T if any problems with the parameters.

Name Description
array: An array of T from which to retrieve a sub-array.
Name Description
----- ------
startIndex: An [[
Name Description
----- ------
length: An [[

M:WebSocketSharp.Ext.SubArray1(0[],System.Int64,System.Int64)

Retrieves a sub-array from the specified . A sub-array starts at the specified element position in .

Returns: An array of T that receives a sub-array, or an empty array of T if any problems with the parameters.

Name Description
array: An array of T from which to retrieve a sub-array.
Name Description
----- ------
startIndex: A [[
Name Description
----- ------
length: A [[

M:WebSocketSharp.Ext.Times(System.Int32,System.Action{System.Int32})

Executes the specified delegate times.

Name Description
n: An [[
Name Description
----- ------
action: An delegate that references the method(s) to execute. An [[

M:WebSocketSharp.Ext.ToHostOrder(System.Byte[],WebSocketSharp.ByteOrder)

Converts the order of the specified array of to the host byte order.

Returns: An array of converted from .

Name Description
source: An array of [[
Name Description
----- ------
sourceOrder: One of the [[

M:WebSocketSharp.Ext.ToString1(0[],System.String)

Converts the specified to a that concatenates the each element of across the specified .

Returns: A converted from , or if is empty.

Name Description
array: An array of T to convert.
Name Description
----- ------
separator: A [[

M:WebSocketSharp.Ext.ToUri(System.String)

Converts the specified to a .

Name Description
uriString: A [[

M:WebSocketSharp.Ext.UrlDecode(System.String)

URL-decodes the specified .

Name Description
value: A [[

M:WebSocketSharp.Ext.UrlEncode(System.String)

URL-encodes the specified .

Name Description
value: A [[

M:WebSocketSharp.Ext.EqualsWith(System.Int32,System.Char,System.Action{System.Int32})

Determines whether the specified equals the specified , and invokes the specified Action delegate at the same time.

Returns: if equals ; otherwise, .

Name Description
value: An [[
Name Description
----- ------
c: A [[
Name Description
----- ------
action: An Action delegate that references the method(s) called at the same time as comparing. An [[
[[T:System.ArgumentOutOfRangeException T:System.ArgumentOutOfRangeException]]: isn't between 0 and 255.

M:WebSocketSharp.Ext.GetAbsolutePath(System.Uri)

Gets the absolute path from the specified .

Name Description
uri: A [[

M:WebSocketSharp.Ext.GetValue(System.String,System.Char)

Gets the value from the specified that contains a pair of name and value separated by a separator character.

Returns: A that represents the value if any; otherwise, .

Name Description
nameAndValue: A [[
Name Description
----- ------
separator: A [[

M:WebSocketSharp.Ext.TryCreateWebSocketUri(System.String,System.Uri@,System.String@)

Tries to create a for WebSocket with the specified .

Returns: if a is successfully created; otherwise, .

Name Description
uriString: A [[
Name Description
----- ------
message: When this method returns, a [[

T:WebSocketSharp.MessageEventArgs

Contains the event data associated with a event.


P:WebSocketSharp.MessageEventArgs.Data

Gets the message data as a .


P:WebSocketSharp.MessageEventArgs.RawData

Gets the message data as an array of .


P:WebSocketSharp.MessageEventArgs.Type

Gets the type of the message.


T:WebSocketSharp.CloseEventArgs

Contains the event data associated with a event.


P:WebSocketSharp.CloseEventArgs.WasClean

Gets a value indicating whether the WebSocket connection has been closed cleanly.


T:WebSocketSharp.ByteOrder

Contains the values that indicate whether the byte order is a Little-endian or Big-endian.


F:WebSocketSharp.ByteOrder.Little

Indicates a Little-endian.


F:WebSocketSharp.ByteOrder.Big

Indicates a Big-endian.


T:WebSocketSharp.ErrorEventArgs

Contains the event data associated with a event.


P:WebSocketSharp.ErrorEventArgs.Exception

Gets the instance that caused the error.


P:WebSocketSharp.ErrorEventArgs.Message

Gets the error message.


T:WebSocketSharp.WebSocket

Implements the WebSocket interface.


M:WebSocketSharp.WebSocket.#ctor(System.String,System.String[])

Initializes a new instance of the class with the specified WebSocket URL and subprotocols.

Name Description
url: A [[
[[T:System.ArgumentException T:System.ArgumentException]]:

E:WebSocketSharp.WebSocket.OnClose

Occurs when the WebSocket connection has been closed.


E:WebSocketSharp.WebSocket.OnError

Occurs when the gets an error.


E:WebSocketSharp.WebSocket.OnMessage

Occurs when the receives a message.


E:WebSocketSharp.WebSocket.OnOpen

Occurs when the WebSocket connection has been established.


P:WebSocketSharp.WebSocket.Compression

Gets or sets the compression method used to compress the message on the WebSocket connection.


P:WebSocketSharp.WebSocket.Cookies

Gets the HTTP cookies included in the WebSocket connection request and response.


P:WebSocketSharp.WebSocket.Credentials

Gets the credentials for the HTTP authentication (Basic/Digest).


P:WebSocketSharp.WebSocket.Extensions

Gets the WebSocket extensions selected by the server.


P:WebSocketSharp.WebSocket.IsAlive

Gets a value indicating whether the WebSocket connection is alive.


P:WebSocketSharp.WebSocket.IsSecure

Gets a value indicating whether the WebSocket connection is secure.


P:WebSocketSharp.WebSocket.Origin

Gets or sets the value of the Origin header to send with the WebSocket connection request to the server.

The sends the Origin header if this property has any.


P:WebSocketSharp.WebSocket.Protocol

Gets the WebSocket subprotocol selected by the server.


P:WebSocketSharp.WebSocket.ReadyState

Gets the state of the WebSocket connection.


P:WebSocketSharp.WebSocket.ServerCertificateValidationCallback

Gets or sets the callback used to validate the certificate supplied by the server.


P:WebSocketSharp.WebSocket.Url

Gets the WebSocket URL to connect.


M:WebSocketSharp.WebSocket.Close

Closes the WebSocket connection, and releases all associated resources.


M:WebSocketSharp.WebSocket.Close(System.UInt16)

Closes the WebSocket connection with the specified , and releases all associated resources.

This method emits a event if isn't in the allowable range of the WebSocket close status code.

Name Description
code: A [[

M:WebSocketSharp.WebSocket.Close(WebSocketSharp.CloseStatusCode)

Closes the WebSocket connection with the specified , and releases all associated resources.

Name Description
code: One of the [[

M:WebSocketSharp.WebSocket.Close(System.UInt16,System.String)

Closes the WebSocket connection with the specified and , and releases all associated resources.

This method emits a event if isn't in the allowable range of the WebSocket close status code or the size of is greater than 123 bytes.

Name Description
code: A [[
Name Description
----- ------
reason: A [[

M:WebSocketSharp.WebSocket.Close(WebSocketSharp.CloseStatusCode,System.String)

Closes the WebSocket connection with the specified and , and releases all associated resources.

This method emits a event if the size of is greater than 123 bytes.

Name Description
code: One of the [[
Name Description
----- ------
reason: A [[

M:WebSocketSharp.WebSocket.CloseAsync

Closes the WebSocket connection asynchronously, and releases all associated resources.

This method doesn't wait for the close to be complete.


M:WebSocketSharp.WebSocket.CloseAsync(System.UInt16)

Closes the WebSocket connection asynchronously with the specified , and releases all associated resources.

Name Description
code: A [[

M:WebSocketSharp.WebSocket.CloseAsync(WebSocketSharp.CloseStatusCode)

Closes the WebSocket connection asynchronously with the specified , and releases all associated resources.

This method doesn't wait for the close to be complete.

Name Description
code: One of the [[

M:WebSocketSharp.WebSocket.CloseAsync(System.UInt16,System.String)

Closes the WebSocket connection asynchronously with the specified and , and releases all associated resources.

Name Description
code: A [[
Name Description
----- ------
reason: A [[

M:WebSocketSharp.WebSocket.CloseAsync(WebSocketSharp.CloseStatusCode,System.String)

Closes the WebSocket connection asynchronously with the specified and , and releases all associated resources.

Name Description
code: One of the [[
Name Description
----- ------
reason: A [[

M:WebSocketSharp.WebSocket.Connect

Establishes a WebSocket connection.


M:WebSocketSharp.WebSocket.ConnectAsync

Establishes a WebSocket connection asynchronously.

This method doesn't wait for the connect to be complete.


M:WebSocketSharp.WebSocket.Ping

Sends a Ping using the WebSocket connection.

Returns: if the receives a Pong to this Ping in a time; otherwise, .


M:WebSocketSharp.WebSocket.Ping(System.String)

Sends a Ping with the specified using the WebSocket connection.

Returns: if the receives a Pong to this Ping in a time; otherwise, .

Name Description
message: A [[

M:WebSocketSharp.WebSocket.Send(System.Byte[])

Sends a binary using the WebSocket connection.

Name Description
data: An array of [[

M:WebSocketSharp.WebSocket.Send(System.IO.FileInfo)

Sends the specified as a binary data using the WebSocket connection.

Name Description
file: A [[

M:WebSocketSharp.WebSocket.Send(System.String)

Sends a text using the WebSocket connection.

Name Description
data: A [[

M:WebSocketSharp.WebSocket.SendAsync(System.Byte[])

Sends a binary asynchronously using the WebSocket connection.

This method doesn't wait for the send to be complete.

Name Description
data: An array of [[

M:WebSocketSharp.WebSocket.SendAsync(System.IO.FileInfo)

Sends the specified as a binary data asynchronously using the WebSocket connection.

This method doesn't wait for the send to be complete.

Name Description
file: A [[

M:WebSocketSharp.WebSocket.SendAsync(System.String)

Sends a text asynchronously using the WebSocket connection.

This method doesn't wait for the send to be complete.

Name Description
data: A [[

M:WebSocketSharp.WebSocket.SendAsync(System.IO.Stream,System.Int32)

Sends a binary data from the specified asynchronously using the WebSocket connection.

This method doesn't wait for the send to be complete.

Name Description
stream: A [[
Name Description
----- ------
length: An [[

M:WebSocketSharp.WebSocket.SetCookie(WebSocketSharp.Net.Cookie)

Sets an HTTP to send with the WebSocket connection request to the server.

Name Description
cookie: A [[

M:WebSocketSharp.WebSocket.SetCredentials(System.String,System.String,System.Boolean)

Sets a pair of and for the HTTP authentication (Basic/Digest).

Name Description
username: A [[
Name Description
----- ------
password: A [[
Name Description
----- ------
preAuth: if the [[

M:WebSocketSharp.WebSocket.SetHttpProxy(System.String,System.String,System.String)

Sets the HTTP Proxy server URL to connect through, and a pair of and for the proxy server authentication (Basic/Digest).

Name Description
url: A [[
Name Description
----- ------
username: A [[
Name Description
----- ------
password: A [[

M:WebSocketSharp.WebSocket.Dispose

Closes the WebSocket connection, and releases all associated resources.

This method closes the WebSocket connection with .


T:WebSocketSharp.Server.WebSocketServer

Provides a WebSocket protocol server.

The WebSocketServer class can provide multiple WebSocket services.


M:WebSocketSharp.Server.WebSocketServer.#ctor

Initializes a new instance of the class.

An instance initialized by this constructor listens for the incoming connection requests on port 80.


M:WebSocketSharp.Server.WebSocketServer.#ctor(System.Int32)

Initializes a new instance of the class with the specified .

Name Description
port: An [[
[[T:System.ArgumentOutOfRangeException T:System.ArgumentOutOfRangeException]]: isn't between 1 and 65535.

M:WebSocketSharp.Server.WebSocketServer.#ctor(System.String)

Initializes a new instance of the class with the specified WebSocket URL.

Name Description
url: A [[
[[T:System.ArgumentException T:System.ArgumentException]]: is invalid.

M:WebSocketSharp.Server.WebSocketServer.#ctor(System.Int32,System.Security.Cryptography.X509Certificates.X509Certificate2)

Initializes a new instance of the class with the specified and .

An instance initialized by this constructor listens for the incoming connection requests on .

Name Description
port: An [[
Name Description
----- ------
certificate: A [[
[[T:System.ArgumentException T:System.ArgumentException]]: Pair of and is invalid.

T:System.ArgumentOutOfRangeException: isn't between 1 and 65535.


M:WebSocketSharp.Server.WebSocketServer.#ctor(System.Net.IPAddress,System.Int32)

Initializes a new instance of the class with the specified and .

Name Description
address: A [[
Name Description
----- ------
port: An [[
[[T:System.ArgumentException T:System.ArgumentException]]: isn't a local IP address.

T:System.ArgumentOutOfRangeException: isn't between 1 and 65535.


M:WebSocketSharp.Server.WebSocketServer.#ctor(System.Net.IPAddress,System.Int32,System.Security.Cryptography.X509Certificates.X509Certificate2)

Initializes a new instance of the class with the specified , , and .

An instance initialized by this constructor listens for the incoming connection requests on .

Name Description
address: A [[
Name Description
----- ------
port: An [[
Name Description
----- ------
certificate: A [[
[[T:System.ArgumentException T:System.ArgumentException]]:

T:System.ArgumentOutOfRangeException: isn't between 1 and 65535.


P:WebSocketSharp.Server.WebSocketServer.Address

Gets the local IP address of the server.


P:WebSocketSharp.Server.WebSocketServer.AuthenticationSchemes

Gets or sets the scheme used to authenticate the clients.


P:WebSocketSharp.Server.WebSocketServer.IsListening

Gets a value indicating whether the server has started.


P:WebSocketSharp.Server.WebSocketServer.IsSecure

Gets a value indicating whether the server provides a secure connection.


P:WebSocketSharp.Server.WebSocketServer.KeepClean

Gets or sets a value indicating whether the server cleans up the inactive sessions periodically.


P:WebSocketSharp.Server.WebSocketServer.Port

Gets the port on which to listen for incoming connection requests.


P:WebSocketSharp.Server.WebSocketServer.Realm

Gets or sets the name of the realm associated with the server.


P:WebSocketSharp.Server.WebSocketServer.ReuseAddress

Gets or sets a value indicating whether the server is allowed to be bound to an address that is already in use.

If you would like to resolve to wait for socket in state, you should set this property to .


P:WebSocketSharp.Server.WebSocketServer.UserCredentialsFinder

Gets or sets the delegate called to find the credentials for an identity used to authenticate a client.


P:WebSocketSharp.Server.WebSocketServer.WaitTime

Gets or sets the wait time for the response to the WebSocket Ping or Close.


P:WebSocketSharp.Server.WebSocketServer.WebSocketServices

Gets the access to the WebSocket services provided by the server.


M:WebSocketSharp.Server.WebSocketServer.AddWebSocketService``1(System.String)

Adds a WebSocket service with the specified behavior and .

This method converts to URL-decoded string, and removes from tail end of .

Name Description
path: A [[

M:WebSocketSharp.Server.WebSocketServer.AddWebSocketService1(System.String,System.Func{0})

Adds a WebSocket service with the specified behavior, , and .

Name Description
path: A [[
Name Description
----- ------
initializer: A Func delegate that references the method used to initialize a new specified typed [[

M:WebSocketSharp.Server.WebSocketServer.RemoveWebSocketService(System.String)

Removes the WebSocket service with the specified .

This method converts to URL-decoded string, and removes from tail end of .

Returns: if the service is successfully found and removed; otherwise, .

Name Description
path: A [[

M:WebSocketSharp.Server.WebSocketServer.Start

Starts receiving the WebSocket connection requests.


M:WebSocketSharp.Server.WebSocketServer.Stop

Stops receiving the WebSocket connection requests.


M:WebSocketSharp.Server.WebSocketServer.Stop(System.UInt16,System.String)

Stops receiving the WebSocket connection requests with the specified and .

Name Description
code: A [[
Name Description
----- ------
reason: A [[

M:WebSocketSharp.Server.WebSocketServer.Stop(WebSocketSharp.CloseStatusCode,System.String)

Stops receiving the WebSocket connection requests with the specified and .

Name Description
code: One of the [[
Name Description
----- ------
reason: A [[

T:WebSocketSharp.Server.WebSocketServiceHost

Exposes the methods and properties used to access the information in a WebSocket service provided by the .

The WebSocketServiceHost class is an abstract class.


M:WebSocketSharp.Server.WebSocketServiceHost.#ctor

Initializes a new instance of the class.


P:WebSocketSharp.Server.WebSocketServiceHost.KeepClean

Gets or sets a value indicating whether the WebSocket service cleans up the inactive sessions periodically.


P:WebSocketSharp.Server.WebSocketServiceHost.Path

Gets the path to the WebSocket service.


P:WebSocketSharp.Server.WebSocketServiceHost.Sessions

Gets the access to the sessions in the WebSocket service.


P:WebSocketSharp.Server.WebSocketServiceHost.Type

Gets the of the behavior of the WebSocket service.


P:WebSocketSharp.Server.WebSocketServiceHost.WaitTime

Gets or sets the wait time for the response to the WebSocket Ping or Close.


M:WebSocketSharp.Server.WebSocketServiceHost.CreateSession

Creates a new session in the WebSocket service.

Returns: A instance that represents a new session.


T:WebSocketSharp.Server.IWebSocketSession

Exposes the properties used to access the information in a session in a WebSocket service.


P:WebSocketSharp.Server.IWebSocketSession.Context

Gets the information in the connection request to the WebSocket service.


P:WebSocketSharp.Server.IWebSocketSession.ID

Gets the unique ID of the session.


P:WebSocketSharp.Server.IWebSocketSession.Protocol

Gets the WebSocket subprotocol used in the session.


P:WebSocketSharp.Server.IWebSocketSession.StartTime

Gets the time that the session has started.


P:WebSocketSharp.Server.IWebSocketSession.State

Gets the state of the used in the session.


T:WebSocketSharp.Server.WebSocketSessionManager

Manages the sessions in a Websocket service.


P:WebSocketSharp.Server.WebSocketSessionManager.ActiveIDs

Gets the IDs for the active sessions in the Websocket service.


P:WebSocketSharp.Server.WebSocketSessionManager.Count

Gets the number of the sessions in the Websocket service.


P:WebSocketSharp.Server.WebSocketSessionManager.IDs

Gets the IDs for the sessions in the Websocket service.


P:WebSocketSharp.Server.WebSocketSessionManager.InactiveIDs

Gets the IDs for the inactive sessions in the Websocket service.


P:WebSocketSharp.Server.WebSocketSessionManager.Item(System.String)

Gets the session with the specified .

Name Description
id: A [[

P:WebSocketSharp.Server.WebSocketSessionManager.KeepClean

Gets a value indicating whether the manager cleans up the inactive sessions in the WebSocket service periodically.


P:WebSocketSharp.Server.WebSocketSessionManager.Sessions

Gets the sessions in the Websocket service.


P:WebSocketSharp.Server.WebSocketSessionManager.WaitTime

Gets the wait time for the response to the WebSocket Ping or Close.


M:WebSocketSharp.Server.WebSocketSessionManager.Broadcast(System.Byte[])

Broadcasts a binary to every client in the WebSocket service.

Name Description
data: An array of [[

M:WebSocketSharp.Server.WebSocketSessionManager.Broadcast(System.String)

Broadcasts a text to every client in the WebSocket service.

Name Description
data: A [[

M:WebSocketSharp.Server.WebSocketSessionManager.BroadcastAsync(System.Byte[])

Broadcasts a binary asynchronously to every client in the WebSocket service.

This method doesn't wait for the broadcast to be complete.

Name Description
data: An array of [[

M:WebSocketSharp.Server.WebSocketSessionManager.BroadcastAsync(System.String)

Broadcasts a text asynchronously to every client in the WebSocket service.

This method doesn't wait for the broadcast to be complete.

Name Description
data: A [[

M:WebSocketSharp.Server.WebSocketSessionManager.BroadcastAsync(System.IO.Stream,System.Int32)

Broadcasts a binary data from the specified asynchronously to every client in the WebSocket service.

This method doesn't wait for the broadcast to be complete.

Name Description
stream: A [[
Name Description
----- ------
length: An [[

M:WebSocketSharp.Server.WebSocketSessionManager.Broadping

Sends a Ping to every client in the WebSocket service.

Returns: A that contains a collection of pairs of a session ID and a value indicating whether the manager received a Pong from each client in a time.


M:WebSocketSharp.Server.WebSocketSessionManager.Broadping(System.String)

Sends a Ping with the specified to every client in the WebSocket service.

Returns: A that contains a collection of pairs of a session ID and a value indicating whether the manager received a Pong from each client in a time.

Name Description
message: A [[

M:WebSocketSharp.Server.WebSocketSessionManager.CloseSession(System.String)

Closes the session with the specified .

Name Description
id: A [[

M:WebSocketSharp.Server.WebSocketSessionManager.CloseSession(System.String,System.UInt16,System.String)

Closes the session with the specified , , and .

Name Description
id: A [[
Name Description
----- ------
code: A [[
Name Description
----- ------
reason: A [[

M:WebSocketSharp.Server.WebSocketSessionManager.CloseSession(System.String,WebSocketSharp.CloseStatusCode,System.String)

Closes the session with the specified , , and .

Name Description
id: A [[
Name Description
----- ------
code: One of the [[
Name Description
----- ------
reason: A [[

M:WebSocketSharp.Server.WebSocketSessionManager.PingTo(System.String)

Sends a Ping to the client on the session with the specified .

Returns: if the manager receives a Pong from the client in a time; otherwise, .

Name Description
id: A [[

M:WebSocketSharp.Server.WebSocketSessionManager.PingTo(System.String,System.String)

Sends a Ping with the specified to the client on the session with the specified .

Returns: if the manager receives a Pong from the client in a time; otherwise, .

Name Description
id: A [[
Name Description
----- ------
message: A [[

M:WebSocketSharp.Server.WebSocketSessionManager.SendTo(System.String,System.Byte[])

Sends a binary to the client on the session with the specified .

Name Description
id: A [[
Name Description
----- ------
data: An array of [[

M:WebSocketSharp.Server.WebSocketSessionManager.SendTo(System.String,System.String)

Sends a text to the client on the session with the specified .

Name Description
id: A [[
Name Description
----- ------
data: A [[

M:WebSocketSharp.Server.WebSocketSessionManager.SendToAsync(System.String,System.Byte[])

Sends a binary asynchronously to the client on the session with the specified .

This method doesn't wait for the send to be complete.

Name Description
id: A [[
Name Description
----- ------
data: An array of [[

M:WebSocketSharp.Server.WebSocketSessionManager.SendToAsync(System.String,System.String)

Sends a text asynchronously to the client on the session with the specified .

This method doesn't wait for the send to be complete.

Name Description
id: A [[
Name Description
----- ------
data: A [[

M:WebSocketSharp.Server.WebSocketSessionManager.SendToAsync(System.String,System.IO.Stream,System.Int32)

Sends a binary data from the specified asynchronously to the client on the session with the specified .

This method doesn't wait for the send to be complete.

Name Description
id: A [[
Name Description
----- ------
stream: A [[
Name Description
----- ------
length: An [[

M:WebSocketSharp.Server.WebSocketSessionManager.Sweep

Cleans up the inactive sessions in the WebSocket service.


M:WebSocketSharp.Server.WebSocketSessionManager.TryGetSession(System.String,WebSocketSharp.Server.IWebSocketSession@)

Tries to get the session with the specified .

Returns: if the session is successfully found; otherwise, .

Name Description
id: A [[

T:WebSocketSharp.Server.WebSocketServiceManager

Manages the WebSocket services provided by the or .


P:WebSocketSharp.Server.WebSocketServiceManager.Count

Gets the number of the WebSocket services.


P:WebSocketSharp.Server.WebSocketServiceManager.Hosts

Gets the host instances for the Websocket services.


P:WebSocketSharp.Server.WebSocketServiceManager.Item(System.String)

Gets the WebSocket service host with the specified .

Name Description
path: A [[

P:WebSocketSharp.Server.WebSocketServiceManager.KeepClean

Gets a value indicating whether the manager cleans up the inactive sessions in the WebSocket services periodically.


P:WebSocketSharp.Server.WebSocketServiceManager.Paths

Gets the paths for the WebSocket services.


P:WebSocketSharp.Server.WebSocketServiceManager.SessionCount

Gets the total number of the sessions in the WebSocket services.


P:WebSocketSharp.Server.WebSocketServiceManager.WaitTime

Gets the wait time for the response to the WebSocket Ping or Close.


M:WebSocketSharp.Server.WebSocketServiceManager.Broadcast(System.Byte[])

Broadcasts a binary to every client in the WebSocket services.

Name Description
data: An array of [[

M:WebSocketSharp.Server.WebSocketServiceManager.Broadcast(System.String)

Broadcasts a text to every client in the WebSocket services.

Name Description
data: A [[

M:WebSocketSharp.Server.WebSocketServiceManager.BroadcastAsync(System.Byte[])

Broadcasts a binary asynchronously to every client in the WebSocket services.

This method doesn't wait for the broadcast to be complete.

Name Description
data: An array of [[

M:WebSocketSharp.Server.WebSocketServiceManager.BroadcastAsync(System.String)

Broadcasts a text asynchronously to every client in the WebSocket services.

This method doesn't wait for the broadcast to be complete.

Name Description
data: A [[

M:WebSocketSharp.Server.WebSocketServiceManager.BroadcastAsync(System.IO.Stream,System.Int32)

Broadcasts a binary data from the specified asynchronously to every client in the WebSocket services.

This method doesn't wait for the broadcast to be complete.

Name Description
stream: A [[
Name Description
----- ------
length: An [[

M:WebSocketSharp.Server.WebSocketServiceManager.Broadping

Sends a Ping to every client in the WebSocket services.


M:WebSocketSharp.Server.WebSocketServiceManager.Broadping(System.String)

Sends a Ping with the specified to every client in the WebSocket services.

Name Description
message: A [[

M:WebSocketSharp.Server.WebSocketServiceManager.TryGetServiceHost(System.String,WebSocketSharp.Server.WebSocketServiceHost@)

Tries to get the WebSocket service host with the specified .

Returns: if the service is successfully found; otherwise, .

Name Description
path: A [[

T:WebSocketSharp.Server.WebSocketBehavior

Exposes the methods and properties used to define the behavior of a WebSocket service provided by the or .

The WebSocketBehavior class is an abstract class.


M:WebSocketSharp.Server.WebSocketBehavior.#ctor

Initializes a new instance of the class.


P:WebSocketSharp.Server.WebSocketBehavior.Context

Gets the information in the current connection request to the WebSocket service.


P:WebSocketSharp.Server.WebSocketBehavior.CookiesValidator

Gets or sets the delegate called to validate the HTTP cookies included in a connection request to the WebSocket service.

The delegate is called when the used in the current session validates the connection request.


P:WebSocketSharp.Server.WebSocketBehavior.ID

Gets the unique ID of the current session.


P:WebSocketSharp.Server.WebSocketBehavior.OriginValidator

Gets or sets the delegate called to validate the Origin header included in a connection request to the WebSocket service.

The delegate is called when the used in the current session validates the connection request.


P:WebSocketSharp.Server.WebSocketBehavior.Protocol

Gets or sets the WebSocket subprotocol used in the current session.

Set operation of this property is available before the WebSocket connection has been established.


P:WebSocketSharp.Server.WebSocketBehavior.StartTime

Gets the time that the current session has started.


P:WebSocketSharp.Server.WebSocketBehavior.State

Gets the state of the used in the current session.


P:WebSocketSharp.Server.WebSocketBehavior.Sessions

Gets the access to the sessions in the WebSocket service.


M:WebSocketSharp.Server.WebSocketBehavior.Error(System.String,System.Exception)

Calls the method with the specified and .

Name Description
message: A [[
Name Description
----- ------
exception: An [[

M:WebSocketSharp.Server.WebSocketBehavior.OnClose(WebSocketSharp.CloseEventArgs)

Called when the WebSocket connection used in the current session has been closed.

Name Description
e: A [[

M:WebSocketSharp.Server.WebSocketBehavior.OnError(WebSocketSharp.ErrorEventArgs)

Called when the used in the current session gets an error.

Name Description
e: A [[

M:WebSocketSharp.Server.WebSocketBehavior.OnMessage(WebSocketSharp.MessageEventArgs)

Called when the used in the current session receives a message.

Name Description
e: A [[

M:WebSocketSharp.Server.WebSocketBehavior.OnOpen

Called when the WebSocket connection used in the current session has been established.


M:WebSocketSharp.Server.WebSocketBehavior.Send(System.Byte[])

Sends a binary to the client on the current session.

This method is available after the WebSocket connection has been established.

Name Description
data: An array of [[

M:WebSocketSharp.Server.WebSocketBehavior.Send(System.IO.FileInfo)

Sends the specified as a binary data to the client on the current session.

This method is available after the WebSocket connection has been established.

Name Description
file: A [[

M:WebSocketSharp.Server.WebSocketBehavior.Send(System.String)

Sends a text to the client on the current session.

This method is available after the WebSocket connection has been established.

Name Description
data: A [[

M:WebSocketSharp.Server.WebSocketBehavior.SendAsync(System.Byte[])

Sends a binary asynchronously to the client on the current session.

Name Description
data: An array of [[

M:WebSocketSharp.Server.WebSocketBehavior.SendAsync(System.IO.FileInfo)

Sends the specified as a binary data asynchronously to the client on the current session.

Name Description
file: A [[

M:WebSocketSharp.Server.WebSocketBehavior.SendAsync(System.String)

Sends a text asynchronously to the client on the current session.

Name Description
data: A [[
Name Description
----- ------
completed: An delegate that references the method(s) called when the send is complete. A [[

M:WebSocketSharp.Server.WebSocketBehavior.SendAsync(System.IO.Stream,System.Int32)

Sends a binary data from the specified asynchronously to the client on the current session.

Name Description
stream: A [[
Name Description
----- ------
length: An [[
Name Description
----- ------
completed: An delegate that references the method(s) called when the send is complete. A [[

T:WebSocketSharp.Net.AuthenticationSchemes

Contains the values of the schemes for authentication.


F:WebSocketSharp.Net.AuthenticationSchemes.None

Indicates that no authentication is allowed.


F:WebSocketSharp.Net.AuthenticationSchemes.Digest

Indicates digest authentication.


F:WebSocketSharp.Net.AuthenticationSchemes.Basic

Indicates basic authentication.


F:WebSocketSharp.Net.AuthenticationSchemes.Anonymous

Indicates anonymous authentication.


T:WebSocketSharp.Net.Cookie

Provides a set of methods and properties used to manage an HTTP Cookie.


M:WebSocketSharp.Net.Cookie.#ctor

Initializes a new instance of the class.


M:WebSocketSharp.Net.Cookie.#ctor(System.String,System.String)

Initializes a new instance of the class with the specified and .

Name Description
name: A [[
Name Description
----- ------
value: A [[
[[T:WebSocketSharp.Net.CookieException T:WebSocketSharp.Net.CookieException]]:

M:WebSocketSharp.Net.Cookie.#ctor(System.String,System.String,System.String)

Initializes a new instance of the class with the specified , , and .

Name Description
name: A [[
Name Description
----- ------
value: A [[
Name Description
----- ------
path: A [[
[[T:WebSocketSharp.Net.CookieException T:WebSocketSharp.Net.CookieException]]:

M:WebSocketSharp.Net.Cookie.#ctor(System.String,System.String,System.String,System.String)

Initializes a new instance of the class with the specified , , , and .

Name Description
name: A [[
Name Description
----- ------
value: A [[
Name Description
----- ------
path: A [[
Name Description
----- ------
domain: A [[
[[T:WebSocketSharp.Net.CookieException T:WebSocketSharp.Net.CookieException]]:

P:WebSocketSharp.Net.Cookie.Comment

Gets or sets the value of the Comment attribute of the cookie.


P:WebSocketSharp.Net.Cookie.CommentUri

Gets or sets the value of the CommentURL attribute of the cookie.


P:WebSocketSharp.Net.Cookie.Discard

Gets or sets a value indicating whether the client discards the cookie unconditionally when the client terminates.


P:WebSocketSharp.Net.Cookie.Domain

Gets or sets the value of the Domain attribute of the cookie.


P:WebSocketSharp.Net.Cookie.Expired

Gets or sets a value indicating whether the cookie has expired.


P:WebSocketSharp.Net.Cookie.Expires

Gets or sets the value of the Expires attribute of the cookie.


P:WebSocketSharp.Net.Cookie.HttpOnly

Gets or sets a value indicating whether non-HTTP APIs can access the cookie.


P:WebSocketSharp.Net.Cookie.Name

Gets or sets the Name of the cookie.

T:WebSocketSharp.Net.CookieException:


P:WebSocketSharp.Net.Cookie.Path

Gets or sets the value of the Path attribute of the cookie.


P:WebSocketSharp.Net.Cookie.Port

Gets or sets the value of the Port attribute of the cookie.

T:WebSocketSharp.Net.CookieException: The value specified for a set operation isn't enclosed in double quotes or couldn't be parsed.


P:WebSocketSharp.Net.Cookie.Secure

Gets or sets a value indicating whether the security level of the cookie is secure.

When this property is , the cookie may be included in the HTTP request only if the request is transmitted over the HTTPS.


P:WebSocketSharp.Net.Cookie.TimeStamp

Gets the time when the cookie was issued.


P:WebSocketSharp.Net.Cookie.Value

Gets or sets the Value of the cookie.

T:WebSocketSharp.Net.CookieException:


P:WebSocketSharp.Net.Cookie.Version

Gets or sets the value of the Version attribute of the cookie.

T:System.ArgumentOutOfRangeException: The value specified for a set operation isn't 0 or 1.


M:WebSocketSharp.Net.Cookie.Equals(System.Object)

Determines whether the specified is equal to the current .

Name Description
comparand: An [[
Returns: if is equal to the current [[ T:WebSocketSharp.Net.Cookie]]; otherwise, .

M:WebSocketSharp.Net.Cookie.GetHashCode

Serves as a hash function for a object.

Returns: An that represents the hash code for the current .


M:WebSocketSharp.Net.Cookie.ToString

Returns a that represents the current .

This method returns a to use to send an HTTP Cookie to an origin server.

Returns: A that represents the current .


T:WebSocketSharp.Net.CookieCollection

Provides a collection container for instances of the class.


M:WebSocketSharp.Net.CookieCollection.#ctor

Initializes a new instance of the class.


P:WebSocketSharp.Net.CookieCollection.Count

Gets the number of cookies in the collection.


P:WebSocketSharp.Net.CookieCollection.IsReadOnly

Gets a value indicating whether the collection is read-only.


P:WebSocketSharp.Net.CookieCollection.IsSynchronized

Gets a value indicating whether the access to the collection is thread safe.


P:WebSocketSharp.Net.CookieCollection.Item(System.Int32)

Gets the at the specified from the collection.

Name Description
index: An [[
[[T:System.ArgumentOutOfRangeException T:System.ArgumentOutOfRangeException]]: is out of allowable range of indexes for the collection.

P:WebSocketSharp.Net.CookieCollection.Item(System.String)

Gets the with the specified from the collection.

Name Description
name: A [[

P:WebSocketSharp.Net.CookieCollection.SyncRoot

Gets an object used to synchronize access to the collection.


M:WebSocketSharp.Net.CookieCollection.Add(WebSocketSharp.Net.Cookie)

Adds the specified to the collection.

Name Description
cookie: A [[

M:WebSocketSharp.Net.CookieCollection.Add(WebSocketSharp.Net.CookieCollection)

Adds the specified to the collection.

Name Description
cookies: A [[

M:WebSocketSharp.Net.CookieCollection.CopyTo(System.Array,System.Int32)

Copies the elements of the collection to the specified , starting at the specified in the .

Name Description
array: An [[
Name Description
----- ------
index: An [[
[[T:System.ArgumentOutOfRangeException T:System.ArgumentOutOfRangeException]]: is less than zero.

T:System.ArgumentException:

T:System.InvalidCastException: The elements in the collection cannot be cast automatically to the type of the destination .


M:WebSocketSharp.Net.CookieCollection.CopyTo(WebSocketSharp.Net.Cookie[],System.Int32)

Copies the elements of the collection to the specified array of , starting at the specified in the .

Name Description
array: An array of [[
Name Description
----- ------
index: An [[
[[T:System.ArgumentOutOfRangeException T:System.ArgumentOutOfRangeException]]: is less than zero.

T:System.ArgumentException: The number of elements in the collection is greater than the available space from to the end of the destination .


M:WebSocketSharp.Net.CookieCollection.GetEnumerator

Gets the enumerator used to iterate through the collection.

Returns: An instance used to iterate through the collection.


T:WebSocketSharp.Net.CookieException

The exception that is thrown when a gets an error.


M:WebSocketSharp.Net.CookieException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)

Initializes a new instance of the class from the specified and .

Name Description
serializationInfo: A [[
Name Description
----- ------
streamingContext: A [[

M:WebSocketSharp.Net.CookieException.#ctor

Initializes a new instance of the class.


M:WebSocketSharp.Net.CookieException.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)

Populates the specified with the data needed to serialize the current .

Name Description
serializationInfo: A [[
Name Description
----- ------
streamingContext: A [[

M:WebSocketSharp.Net.CookieException.System#Runtime#Serialization#ISerializable#GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)

Populates the specified with the data needed to serialize the current .

Name Description
serializationInfo: A [[
Name Description
----- ------
streamingContext: A [[

T:WebSocketSharp.Net.HttpListener

Provides a simple, programmatically controlled HTTP listener.


M:WebSocketSharp.Net.HttpListener.#ctor

Initializes a new instance of the class.


P:WebSocketSharp.Net.HttpListener.AuthenticationSchemes

Gets or sets the scheme used to authenticate the clients.

T:System.ObjectDisposedException: This listener has been closed.


P:WebSocketSharp.Net.HttpListener.AuthenticationSchemeSelector

Gets or sets the delegate called to select the scheme used to authenticate the clients.

If you set this property, the listener uses the authentication scheme selected by the delegate for each request. Or if you don't set, the listener uses the value of the property as the authentication scheme for all requests.

T:System.ObjectDisposedException: This listener has been closed.


P:WebSocketSharp.Net.HttpListener.CertificateFolderPath

Gets or sets the path to the folder in which stores the certificate files used to authenticate the server on the secure connection.

T:System.ObjectDisposedException: This listener has been closed.


P:WebSocketSharp.Net.HttpListener.DefaultCertificate

Gets or sets the default certificate used to authenticate the server on the secure connection.

T:System.ObjectDisposedException: This listener has been closed.


P:WebSocketSharp.Net.HttpListener.IgnoreWriteExceptions

Gets or sets a value indicating whether the listener returns exceptions that occur when sending the response to the client.

T:System.ObjectDisposedException: This listener has been closed.


P:WebSocketSharp.Net.HttpListener.IsListening

Gets a value indicating whether the listener has been started.


P:WebSocketSharp.Net.HttpListener.IsSupported

Gets a value indicating whether the listener can be used with the current operating system.


P:WebSocketSharp.Net.HttpListener.Prefixes

Gets the URI prefixes handled by the listener.

T:System.ObjectDisposedException: This listener has been closed.


P:WebSocketSharp.Net.HttpListener.Realm

Gets or sets the name of the realm associated with the listener.

T:System.ObjectDisposedException: This listener has been closed.


P:WebSocketSharp.Net.HttpListener.UnsafeConnectionNtlmAuthentication

Gets or sets a value indicating whether, when NTLM authentication is used, the authentication information of first request is used to authenticate additional requests on the same connection.

This property isn't currently supported and always throws a .

T:System.NotSupportedException: Any use of this property.


P:WebSocketSharp.Net.HttpListener.UserCredentialsFinder

Gets or sets the delegate called to find the credentials for an identity used to authenticate a client.

T:System.ObjectDisposedException: This listener has been closed.


M:WebSocketSharp.Net.HttpListener.Abort

Shuts down the listener immediately.


M:WebSocketSharp.Net.HttpListener.BeginGetContext(System.AsyncCallback,System.Object)

Begins getting an incoming request asynchronously.

This asynchronous operation must be completed by calling the method. Typically, the method is invoked by the delegate.

Returns: An that represents the status of the asynchronous operation.

Name Description
callback: An [[
Name Description
----- ------
state: An [[
[[T:System.InvalidOperationException T:System.InvalidOperationException]]:

T:System.ObjectDisposedException: This listener has been closed.


M:WebSocketSharp.Net.HttpListener.Close

Shuts down the listener.


M:WebSocketSharp.Net.HttpListener.EndGetContext(System.IAsyncResult)

Ends an asynchronous operation to get an incoming request.

This method completes an asynchronous operation started by calling the method.

Returns: A that represents a request.

Name Description
asyncResult: An [[
[[T:System.ArgumentException T:System.ArgumentException]]: wasn't obtained by calling the method.

T:System.InvalidOperationException: This method was already called for the specified .

T:System.ObjectDisposedException: This listener has been closed.


M:WebSocketSharp.Net.HttpListener.GetContext

Gets an incoming request.

This method waits for an incoming request, and returns when a request is received.

Returns: A that represents a request.

T:System.InvalidOperationException:

T:System.ObjectDisposedException: This listener has been closed.


M:WebSocketSharp.Net.HttpListener.Start

Starts receiving incoming requests.

T:System.ObjectDisposedException: This listener has been closed.


M:WebSocketSharp.Net.HttpListener.Stop

Stops receiving incoming requests.

T:System.ObjectDisposedException: This listener has been closed.


M:WebSocketSharp.Net.HttpListener.System#IDisposable#Dispose

Releases all resources used by the listener.


T:WebSocketSharp.Net.HttpListenerContext

Provides a set of methods and properties used to access the HTTP request and response information used by the .

The HttpListenerContext class cannot be inherited.


P:WebSocketSharp.Net.HttpListenerContext.Request

Gets the HTTP request information from a client.


P:WebSocketSharp.Net.HttpListenerContext.Response

Gets the HTTP response information used to send to the client.


P:WebSocketSharp.Net.HttpListenerContext.User

Gets the client information (identity, authentication, and security roles).


M:WebSocketSharp.Net.HttpListenerContext.AcceptWebSocket(System.String)

Accepts a WebSocket connection request.

Returns: A that represents the WebSocket connection request.

Name Description
protocol: A [[
Name Description
----- ------
logger: A [[
[[T:System.ArgumentException T:System.ArgumentException]]:

T:WebSocketSharp.Net.HttpListenerException

The exception that is thrown when a gets an error processing an HTTP request.


M:WebSocketSharp.Net.HttpListenerException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)

Initializes a new instance of the class from the specified and .

Name Description
serializationInfo: A [[
Name Description
----- ------
streamingContext: A [[

M:WebSocketSharp.Net.HttpListenerException.#ctor

Initializes a new instance of the class.


M:WebSocketSharp.Net.HttpListenerException.#ctor(System.Int32)

Initializes a new instance of the class with the specified .

Name Description
errorCode: An [[

M:WebSocketSharp.Net.HttpListenerException.#ctor(System.Int32,System.String)

Initializes a new instance of the class with the specified and .

Name Description
errorCode: An [[
Name Description
----- ------
message: A [[

P:WebSocketSharp.Net.HttpListenerException.ErrorCode

Gets the error code that identifies the error that occurred.


T:WebSocketSharp.Net.HttpListenerPrefixCollection

Provides the collection used to store the URI prefixes for the .

The responds to the request which has a requested URI that the prefixes most closely match.


P:WebSocketSharp.Net.HttpListenerPrefixCollection.Count

Gets the number of prefixes in the collection.


P:WebSocketSharp.Net.HttpListenerPrefixCollection.IsReadOnly

Gets a value indicating whether the access to the collection is read-only.


P:WebSocketSharp.Net.HttpListenerPrefixCollection.IsSynchronized

Gets a value indicating whether the access to the collection is synchronized.


M:WebSocketSharp.Net.HttpListenerPrefixCollection.Add(System.String)

Adds the specified to the collection.

Name Description
uriPrefix: A [[
[[T:System.ArgumentException T:System.ArgumentException]]: is invalid.

T:System.ObjectDisposedException: The associated with this collection is closed.


M:WebSocketSharp.Net.HttpListenerPrefixCollection.Clear

Removes all URI prefixes from the collection.

T:System.ObjectDisposedException: The associated with this collection is closed.


M:WebSocketSharp.Net.HttpListenerPrefixCollection.Contains(System.String)

Returns a value indicating whether the collection contains the specified .

Returns: if the collection contains ; otherwise, .

Name Description
uriPrefix: A [[
[[T:System.ObjectDisposedException T:System.ObjectDisposedException]]: The [[

M:WebSocketSharp.Net.HttpListenerPrefixCollection.CopyTo(System.Array,System.Int32)

Copies the contents of the collection to the specified .

Name Description
array: An [[
Name Description
----- ------
offset: An [[
[[T:System.ObjectDisposedException T:System.ObjectDisposedException]]: The [[

M:WebSocketSharp.Net.HttpListenerPrefixCollection.CopyTo(System.String[],System.Int32)

Copies the contents of the collection to the specified array of .

Name Description
array: An array of [[
Name Description
----- ------
offset: An [[
[[T:System.ObjectDisposedException T:System.ObjectDisposedException]]: The [[

M:WebSocketSharp.Net.HttpListenerPrefixCollection.GetEnumerator

Gets the enumerator used to iterate through the .

Returns: An instance used to iterate through the collection.


M:WebSocketSharp.Net.HttpListenerPrefixCollection.Remove(System.String)

Removes the specified from the collection.

Returns: if is successfully found and removed; otherwise, .

Name Description
uriPrefix: A [[
[[T:System.ObjectDisposedException T:System.ObjectDisposedException]]: The [[

M:WebSocketSharp.Net.HttpListenerPrefixCollection.System#Collections#IEnumerable#GetEnumerator

Gets the enumerator used to iterate through the .

Returns: An instance used to iterate through the collection.


T:WebSocketSharp.Net.HttpListenerRequest

Provides the access to a request to the .

The HttpListenerRequest class cannot be inherited.


P:WebSocketSharp.Net.HttpListenerRequest.AcceptTypes

Gets the media types which are acceptable for the response.


P:WebSocketSharp.Net.HttpListenerRequest.ClientCertificateError

Gets an error code that identifies a problem with the client's certificate.


P:WebSocketSharp.Net.HttpListenerRequest.ContentEncoding

Gets the encoding for the entity body data included in the request.


P:WebSocketSharp.Net.HttpListenerRequest.ContentLength64

Gets the size of the entity body data included in the request.


P:WebSocketSharp.Net.HttpListenerRequest.ContentType

Gets the media type of the entity body included in the request.


P:WebSocketSharp.Net.HttpListenerRequest.Cookies

Gets the cookies included in the request.


P:WebSocketSharp.Net.HttpListenerRequest.HasEntityBody

Gets a value indicating whether the request has the entity body.


P:WebSocketSharp.Net.HttpListenerRequest.Headers

Gets the HTTP headers used in the request.


P:WebSocketSharp.Net.HttpListenerRequest.HttpMethod

Gets the HTTP method used in the request.


P:WebSocketSharp.Net.HttpListenerRequest.InputStream

Gets a that contains the entity body data included in the request.


P:WebSocketSharp.Net.HttpListenerRequest.IsAuthenticated

Gets a value indicating whether the client that sent the request is authenticated.


P:WebSocketSharp.Net.HttpListenerRequest.IsLocal

Gets a value indicating whether the request is sent from the local computer.


P:WebSocketSharp.Net.HttpListenerRequest.IsSecureConnection

Gets a value indicating whether the HTTP connection is secured using the SSL protocol.


P:WebSocketSharp.Net.HttpListenerRequest.IsWebSocketRequest

Gets a value indicating whether the request is a WebSocket connection request.


P:WebSocketSharp.Net.HttpListenerRequest.KeepAlive

Gets a value indicating whether the client requests a persistent connection.


P:WebSocketSharp.Net.HttpListenerRequest.LocalEndPoint

Gets the server endpoint as an IP address and a port number.


P:WebSocketSharp.Net.HttpListenerRequest.ProtocolVersion

Gets the HTTP version used in the request.


P:WebSocketSharp.Net.HttpListenerRequest.QueryString

Gets the query string included in the request.


P:WebSocketSharp.Net.HttpListenerRequest.RawUrl

Gets the raw URL (without the scheme, host, and port) requested by the client.


P:WebSocketSharp.Net.HttpListenerRequest.RemoteEndPoint

Gets the client endpoint as an IP address and a port number.


P:WebSocketSharp.Net.HttpListenerRequest.RequestTraceIdentifier

Gets the request identifier of a incoming HTTP request.


P:WebSocketSharp.Net.HttpListenerRequest.Url

Gets the URL requested by the client.


P:WebSocketSharp.Net.HttpListenerRequest.UrlReferrer

Gets the URL of the resource from which the requested URL was obtained.


P:WebSocketSharp.Net.HttpListenerRequest.UserAgent

Gets the information about the user agent originating the request.


P:WebSocketSharp.Net.HttpListenerRequest.UserHostAddress

Gets the server endpoint as an IP address and a port number.


P:WebSocketSharp.Net.HttpListenerRequest.UserHostName

Gets the internet host name and port number (if present) specified by the client.


P:WebSocketSharp.Net.HttpListenerRequest.UserLanguages

Gets the natural languages which are preferred for the response.


M:WebSocketSharp.Net.HttpListenerRequest.BeginGetClientCertificate(System.AsyncCallback,System.Object)

Begins getting the client's X.509 v.3 certificate asynchronously.

This asynchronous operation must be completed by calling the method. Typically, that method is invoked by the delegate.

Returns: An that contains the status of the asynchronous operation.

Name Description
requestCallback: An [[
Name Description
----- ------
state: An [[
[[T:System.NotImplementedException T:System.NotImplementedException]]: This method isn't implemented.

M:WebSocketSharp.Net.HttpListenerRequest.EndGetClientCertificate(System.IAsyncResult)

Ends an asynchronous operation to get the client's X.509 v.3 certificate.

This method completes an asynchronous operation started by calling the method.

Returns: A that contains the client's X.509 v.3 certificate.

Name Description
asyncResult: An [[
[[T:System.NotImplementedException T:System.NotImplementedException]]: This method isn't implemented.

M:WebSocketSharp.Net.HttpListenerRequest.GetClientCertificate

Gets the client's X.509 v.3 certificate.

Returns: A that contains the client's X.509 v.3 certificate.

T:System.NotImplementedException: This method isn't implemented.


M:WebSocketSharp.Net.HttpListenerRequest.ToString

Returns a that represents the current .

Returns: A that represents the current .


T:WebSocketSharp.Net.HttpListenerResponse

Provides the access to a response to a request received by the .

The HttpListenerResponse class cannot be inherited.


P:WebSocketSharp.Net.HttpListenerResponse.ContentEncoding

Gets or sets the encoding for the entity body data included in the response.

T:System.InvalidOperationException: The response has already been sent.

T:System.ObjectDisposedException: This object is closed.


P:WebSocketSharp.Net.HttpListenerResponse.ContentLength64

Gets or sets the size of the entity body data included in the response.

T:System.ArgumentOutOfRangeException: The value specified for a set operation is less than zero.

T:System.InvalidOperationException: The response has already been sent.

T:System.ObjectDisposedException: This object is closed.


P:WebSocketSharp.Net.HttpListenerResponse.ContentType

Gets or sets the media type of the entity body included in the response.

T:System.ArgumentException: The value specified for a set operation is empty.

T:System.InvalidOperationException: The response has already been sent.

T:System.ObjectDisposedException: This object is closed.


P:WebSocketSharp.Net.HttpListenerResponse.Cookies

Gets or sets the cookies sent with the response.

T:System.InvalidOperationException: The response has already been sent.

T:System.ObjectDisposedException: This object is closed.


P:WebSocketSharp.Net.HttpListenerResponse.Headers

Gets or sets the HTTP headers sent to the client.

T:System.InvalidOperationException: The response has already been sent.

T:System.ObjectDisposedException: This object is closed.


P:WebSocketSharp.Net.HttpListenerResponse.KeepAlive

Gets or sets a value indicating whether the server requests a persistent connection.

T:System.InvalidOperationException: The response has already been sent.

T:System.ObjectDisposedException: This object is closed.


P:WebSocketSharp.Net.HttpListenerResponse.OutputStream

Gets a to use to write the entity body data.

T:System.ObjectDisposedException: This object is closed.


P:WebSocketSharp.Net.HttpListenerResponse.ProtocolVersion

Gets or sets the HTTP version used in the response.

T:System.ArgumentException: The value specified for a set operation doesn't have its property set to 1 or doesn't have its property set to either 0 or 1.

T:System.InvalidOperationException: The response has already been sent.

T:System.ObjectDisposedException: This object is closed.


P:WebSocketSharp.Net.HttpListenerResponse.RedirectLocation

Gets or sets the URL to which the client is redirected to locate a requested resource.

T:System.ArgumentException: The value specified for a set operation is empty.

T:System.InvalidOperationException: The response has already been sent.

T:System.ObjectDisposedException: This object is closed.


P:WebSocketSharp.Net.HttpListenerResponse.SendChunked

Gets or sets a value indicating whether the response uses the chunked transfer encoding.

T:System.InvalidOperationException: The response has already been sent.

T:System.ObjectDisposedException: This object is closed.


P:WebSocketSharp.Net.HttpListenerResponse.StatusCode

Gets or sets the HTTP status code returned to the client.

T:System.InvalidOperationException: The response has already been sent.

T:System.Net.ProtocolViolationException: The value specified for a set operation is invalid. Valid values are between 100 and 999.

T:System.ObjectDisposedException: This object is closed.


P:WebSocketSharp.Net.HttpListenerResponse.StatusDescription

Gets or sets the description of the HTTP status code returned to the client.

T:System.InvalidOperationException: The response has already been sent.

T:System.ObjectDisposedException: This object is closed.


M:WebSocketSharp.Net.HttpListenerResponse.Abort

Closes the connection to the client without returning a response.


M:WebSocketSharp.Net.HttpListenerResponse.AddHeader(System.String,System.String)

Adds an HTTP header with the specified and to the headers for the response.

Name Description
name: A [[
Name Description
----- ------
value: A [[
[[T:System.ArgumentException T:System.ArgumentException]]:

T:System.ArgumentOutOfRangeException: The length of is greater than 65,535 characters.

T:System.InvalidOperationException:

T:System.ObjectDisposedException: This object is closed.


M:WebSocketSharp.Net.HttpListenerResponse.AppendCookie(WebSocketSharp.Net.Cookie)

Appends the specified to the cookies sent with the response.

Name Description
cookie: A [[
[[T:System.InvalidOperationException T:System.InvalidOperationException]]: The response has already been sent.

T:System.ObjectDisposedException: This object is closed.


M:WebSocketSharp.Net.HttpListenerResponse.AppendHeader(System.String,System.String)

Appends a to the specified HTTP header sent with the response.

Name Description
name: A [[
Name Description
----- ------
value: A [[
[[T:System.ArgumentException T:System.ArgumentException]]:

T:System.ArgumentOutOfRangeException: The length of is greater than 65,535 characters.

T:System.InvalidOperationException:

T:System.ObjectDisposedException: This object is closed.


M:WebSocketSharp.Net.HttpListenerResponse.Close

Returns the response to the client and releases the resources used by this instance.


M:WebSocketSharp.Net.HttpListenerResponse.Close(System.Byte[],System.Boolean)

Returns the response with the specified array of to the client and releases the resources used by this instance.

Name Description
responseEntity: An array of [[
Name Description
----- ------
willBlock: if this method blocks execution while flushing the stream to the client; otherwise, .
[[T:System.InvalidOperationException T:System.InvalidOperationException]]: The response has already been sent.

T:System.ObjectDisposedException: This object is closed.


M:WebSocketSharp.Net.HttpListenerResponse.CopyFrom(WebSocketSharp.Net.HttpListenerResponse)

Copies properties from the specified to this response.

Name Description
templateResponse: A [[
[[T:System.InvalidOperationException T:System.InvalidOperationException]]: The response has already been sent.

T:System.ObjectDisposedException: This object is closed.


M:WebSocketSharp.Net.HttpListenerResponse.Redirect(System.String)

Configures the response to redirect the client's request to the specified .

Name Description
url: A [[
[[T:System.InvalidOperationException T:System.InvalidOperationException]]: The response has already been sent.

T:System.ObjectDisposedException: This object is closed.


M:WebSocketSharp.Net.HttpListenerResponse.SetCookie(WebSocketSharp.Net.Cookie)

Adds or updates a in the cookies sent with the response.

Name Description
cookie: A [[
[[T:System.ArgumentException T:System.ArgumentException]]: already exists in the cookies and couldn't be replaced.

T:System.InvalidOperationException: The response has already been sent.

T:System.ObjectDisposedException: This object is closed.


M:WebSocketSharp.Net.HttpListenerResponse.Dispose

Releases all resources used by the .


M:WebSocketSharp.Net.HttpUtility.HtmlDecode(System.String)

Decodes an HTML-encoded and returns the decoded .

Returns: A that represents the decoded string.

Name Description
s: A [[

M:WebSocketSharp.Net.HttpUtility.HtmlDecode(System.String,System.IO.TextWriter)

Decodes an HTML-encoded and sends the decoded to the specified .

Name Description
s: A [[
Name Description
----- ------
output: A [[

M:WebSocketSharp.Net.HttpUtility.HtmlEncode(System.String)

HTML-encodes a and returns the encoded .

Returns: A that represents the encoded string.

Name Description
s: A [[

M:WebSocketSharp.Net.HttpUtility.HtmlEncode(System.String,System.IO.TextWriter)

HTML-encodes a and sends the encoded to the specified .

Name Description
s: A [[
Name Description
----- ------
output: A [[

T:WebSocketSharp.Net.WebHeaderCollection

Provides a collection of the HTTP headers associated with a request or response.


M:WebSocketSharp.Net.WebHeaderCollection.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)

Initializes a new instance of the class from the specified and .

Name Description
serializationInfo: A [[
Name Description
----- ------
streamingContext: A [[
[[T:System.ArgumentException T:System.ArgumentException]]: An element with the specified name isn't found in .

M:WebSocketSharp.Net.WebHeaderCollection.#ctor

Initializes a new instance of the class.


P:WebSocketSharp.Net.WebHeaderCollection.AllKeys

Gets all header names in the collection.


P:WebSocketSharp.Net.WebHeaderCollection.Count

Gets the number of headers in the collection.


P:WebSocketSharp.Net.WebHeaderCollection.Item(System.Net.HttpRequestHeader)

Gets or sets the specified request in the collection.

Name Description
header: One of the [[
[[T:System.ArgumentException T:System.ArgumentException]]:

T:System.ArgumentOutOfRangeException: The length of is greater than 65,535 characters.

T:System.InvalidOperationException: The current instance doesn't allow the request .


P:WebSocketSharp.Net.WebHeaderCollection.Item(System.Net.HttpResponseHeader)

Gets or sets the specified response in the collection.

Name Description
header: One of the [[
[[T:System.ArgumentException T:System.ArgumentException]]:

T:System.ArgumentOutOfRangeException: The length of is greater than 65,535 characters.

T:System.InvalidOperationException: The current instance doesn't allow the response .


P:WebSocketSharp.Net.WebHeaderCollection.Keys

Gets a collection of header names in the collection.


M:WebSocketSharp.Net.WebHeaderCollection.AddWithoutValidate(System.String,System.String)

Adds a header to the collection without checking whether the header is on the restricted header list.

Name Description
headerName: A [[
Name Description
----- ------
headerValue: A [[
[[T:System.ArgumentException T:System.ArgumentException]]: or contains invalid characters.

T:System.ArgumentOutOfRangeException: The length of is greater than 65,535 characters.

T:System.InvalidOperationException: The current instance doesn't allow the .


M:WebSocketSharp.Net.WebHeaderCollection.Add(System.String)

Adds the specified to the collection.

Name Description
header: A [[
[[T:System.ArgumentException T:System.ArgumentException]]:

T:System.ArgumentOutOfRangeException: The length of the value part of is greater than 65,535 characters.

T:System.InvalidOperationException: The current instance doesn't allow the .


M:WebSocketSharp.Net.WebHeaderCollection.Add(System.Net.HttpRequestHeader,System.String)

Adds the specified request with the specified to the collection.

Name Description
header: One of the [[
Name Description
----- ------
value: A [[
[[T:System.ArgumentException T:System.ArgumentException]]:

T:System.ArgumentOutOfRangeException: The length of is greater than 65,535 characters.

T:System.InvalidOperationException: The current instance doesn't allow the request .


M:WebSocketSharp.Net.WebHeaderCollection.Add(System.Net.HttpResponseHeader,System.String)

Adds the specified response with the specified to the collection.

Name Description
header: One of the [[
Name Description
----- ------
value: A [[
[[T:System.ArgumentException T:System.ArgumentException]]:

T:System.ArgumentOutOfRangeException: The length of is greater than 65,535 characters.

T:System.InvalidOperationException: The current instance doesn't allow the response .


M:WebSocketSharp.Net.WebHeaderCollection.Add(System.String,System.String)

Adds a header with the specified and to the collection.

Name Description
name: A [[
Name Description
----- ------
value: A [[
[[T:System.ArgumentException T:System.ArgumentException]]:

T:System.ArgumentOutOfRangeException: The length of is greater than 65,535 characters.

T:System.InvalidOperationException: The current instance doesn't allow the header .


M:WebSocketSharp.Net.WebHeaderCollection.Clear

Removes all headers from the collection.


M:WebSocketSharp.Net.WebHeaderCollection.Get(System.Int32)

Get the value of the header at the specified in the collection.

Returns: A that receives the value of the header.

Name Description
index: An [[
[[T:System.ArgumentOutOfRangeException T:System.ArgumentOutOfRangeException]]: is out of allowable range of indexes for the collection.

M:WebSocketSharp.Net.WebHeaderCollection.Get(System.String)

Get the value of the header with the specified in the collection.

Name Description
name: A [[

M:WebSocketSharp.Net.WebHeaderCollection.GetEnumerator

Gets the enumerator used to iterate through the collection.

Returns: An instance used to iterate through the collection.


M:WebSocketSharp.Net.WebHeaderCollection.GetKey(System.Int32)

Get the name of the header at the specified in the collection.

Returns: A that receives the header name.

Name Description
index: An [[
[[T:System.ArgumentOutOfRangeException T:System.ArgumentOutOfRangeException]]: is out of allowable range of indexes for the collection.

M:WebSocketSharp.Net.WebHeaderCollection.GetValues(System.Int32)

Gets an array of header values stored in the specified position of the collection.

Name Description
index: An [[
[[T:System.ArgumentOutOfRangeException T:System.ArgumentOutOfRangeException]]: is out of allowable range of indexes for the collection.

M:WebSocketSharp.Net.WebHeaderCollection.GetValues(System.String)

Gets an array of header values stored in the specified .

Name Description
header: A [[

M:WebSocketSharp.Net.WebHeaderCollection.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)

Populates the specified with the data needed to serialize the .

Name Description
serializationInfo: A [[
Name Description
----- ------
streamingContext: A [[

M:WebSocketSharp.Net.WebHeaderCollection.IsRestricted(System.String)

Determines whether the specified header can be set for the request.

Returns: if the header is restricted; otherwise, .

Name Description
headerName: A [[
[[T:System.ArgumentException T:System.ArgumentException]]: contains invalid characters.

M:WebSocketSharp.Net.WebHeaderCollection.IsRestricted(System.String,System.Boolean)

Determines whether the specified header can be set for the request or the response.

Returns: if the header is restricted; otherwise, .

Name Description
headerName: A [[
Name Description
----- ------
response: if does the test for the response; for the request, .
[[T:System.ArgumentException T:System.ArgumentException]]: contains invalid characters.

M:WebSocketSharp.Net.WebHeaderCollection.OnDeserialization(System.Object)

Implements the interface and raises the deserialization event when the deserialization is complete.

Name Description
sender: An [[

M:WebSocketSharp.Net.WebHeaderCollection.Remove(System.Net.HttpRequestHeader)

Removes the specified request from the collection.

Name Description
header: One of the [[
[[T:System.ArgumentException T:System.ArgumentException]]: is a restricted header.

T:System.InvalidOperationException: The current instance doesn't allow the request .


M:WebSocketSharp.Net.WebHeaderCollection.Remove(System.Net.HttpResponseHeader)

Removes the specified response from the collection.

Name Description
header: One of the [[
[[T:System.ArgumentException T:System.ArgumentException]]: is a restricted header.

T:System.InvalidOperationException: The current instance doesn't allow the response .


M:WebSocketSharp.Net.WebHeaderCollection.Remove(System.String)

Removes the specified header from the collection.

Name Description
name: A [[
[[T:System.ArgumentException T:System.ArgumentException]]:

T:System.InvalidOperationException: The current instance doesn't allow the header .


M:WebSocketSharp.Net.WebHeaderCollection.Set(System.Net.HttpRequestHeader,System.String)

Sets the specified request to the specified value.

Name Description
header: One of the [[
Name Description
----- ------
value: A [[
[[T:System.ArgumentException T:System.ArgumentException]]:

T:System.ArgumentOutOfRangeException: The length of is greater than 65,535 characters.

T:System.InvalidOperationException: The current instance doesn't allow the request .


M:WebSocketSharp.Net.WebHeaderCollection.Set(System.Net.HttpResponseHeader,System.String)

Sets the specified response to the specified value.

Name Description
header: One of the [[
Name Description
----- ------
value: A [[
[[T:System.ArgumentException T:System.ArgumentException]]:

T:System.ArgumentOutOfRangeException: The length of is greater than 65,535 characters.

T:System.InvalidOperationException: The current instance doesn't allow the response .


M:WebSocketSharp.Net.WebHeaderCollection.Set(System.String,System.String)

Sets the specified header to the specified value.

Name Description
name: A [[
Name Description
----- ------
value: A [[
[[T:System.ArgumentException T:System.ArgumentException]]:

T:System.ArgumentOutOfRangeException: The length of is greater than 65,535 characters.

T:System.InvalidOperationException: The current instance doesn't allow the header .


M:WebSocketSharp.Net.WebHeaderCollection.ToByteArray

Converts the current to an array of .

Returns: An array of that receives the converted current .


M:WebSocketSharp.Net.WebHeaderCollection.ToString

Returns a that represents the current .

Returns: A that represents the current .


M:WebSocketSharp.Net.WebHeaderCollection.System#Runtime#Serialization#ISerializable#GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)

Populates the specified with the data needed to serialize the current .

Name Description
serializationInfo: A [[
Name Description
----- ------
streamingContext: A [[

T:WebSocketSharp.Net.HttpVersion

Provides the HTTP version numbers.


F:WebSocketSharp.Net.HttpVersion.Version10

Provides a instance for HTTP 1.0.


F:WebSocketSharp.Net.HttpVersion.Version11

Provides a instance for HTTP 1.1.


M:WebSocketSharp.Net.HttpVersion.#ctor

Initializes a new instance of the class.


T:WebSocketSharp.Net.HttpStatusCode

Contains the values of the HTTP status codes.


F:WebSocketSharp.Net.HttpStatusCode.Continue

Equivalent to status code 100. Indicates that the client should continue with its request.


F:WebSocketSharp.Net.HttpStatusCode.SwitchingProtocols

Equivalent to status code 101. Indicates that the server is switching the HTTP version or protocol on the connection.


F:WebSocketSharp.Net.HttpStatusCode.OK

Equivalent to status code 200. Indicates that the client's request has succeeded.


F:WebSocketSharp.Net.HttpStatusCode.Created

Equivalent to status code 201. Indicates that the client's request has been fulfilled and resulted in a new resource being created.


F:WebSocketSharp.Net.HttpStatusCode.Accepted

Equivalent to status code 202. Indicates that the client's request has been accepted for processing, but the processing hasn't been completed.


F:WebSocketSharp.Net.HttpStatusCode.NonAuthoritativeInformation

Equivalent to status code 203. Indicates that the returned metainformation is from a local or a third-party copy instead of the origin server.


F:WebSocketSharp.Net.HttpStatusCode.NoContent

Equivalent to status code 204. Indicates that the server has fulfilled the client's request but doesn't need to return an entity-body.


F:WebSocketSharp.Net.HttpStatusCode.ResetContent

Equivalent to status code 205. Indicates that the server has fulfilled the client's request, and the user agent should reset the document view which caused the request to be sent.


F:WebSocketSharp.Net.HttpStatusCode.PartialContent

Equivalent to status code 206. Indicates that the server has fulfilled the partial GET request for the resource.


F:WebSocketSharp.Net.HttpStatusCode.MultipleChoices

F:WebSocketSharp.Net.HttpStatusCode.Ambiguous

F:WebSocketSharp.Net.HttpStatusCode.MovedPermanently

F:WebSocketSharp.Net.HttpStatusCode.Moved

F:WebSocketSharp.Net.HttpStatusCode.Found

F:WebSocketSharp.Net.HttpStatusCode.Redirect

F:WebSocketSharp.Net.HttpStatusCode.SeeOther

F:WebSocketSharp.Net.HttpStatusCode.RedirectMethod

F:WebSocketSharp.Net.HttpStatusCode.NotModified

Equivalent to status code 304. Indicates that the client has performed a conditional GET request and access is allowed, but the document hasn't been modified.


F:WebSocketSharp.Net.HttpStatusCode.UseProxy

Equivalent to status code 305. Indicates that the requested resource must be accessed through the proxy given by the Location field.


F:WebSocketSharp.Net.HttpStatusCode.Unused

Equivalent to status code 306. This status code was used in a previous version of the specification, is no longer used, and is reserved for future use.


F:WebSocketSharp.Net.HttpStatusCode.TemporaryRedirect

F:WebSocketSharp.Net.HttpStatusCode.RedirectKeepVerb

F:WebSocketSharp.Net.HttpStatusCode.BadRequest

Equivalent to status code 400. Indicates that the client's request couldn't be understood by the server due to malformed syntax.


F:WebSocketSharp.Net.HttpStatusCode.Unauthorized

Equivalent to status code 401. Indicates that the client's request requires user authentication.


F:WebSocketSharp.Net.HttpStatusCode.PaymentRequired

Equivalent to status code 402. This status code is reserved for future use.


F:WebSocketSharp.Net.HttpStatusCode.Forbidden

Equivalent to status code 403. Indicates that the server understood the client's request but is refusing to fulfill it.


F:WebSocketSharp.Net.HttpStatusCode.NotFound

Equivalent to status code 404. Indicates that the server hasn't found anything matching the request URI.


F:WebSocketSharp.Net.HttpStatusCode.MethodNotAllowed

Equivalent to status code 405. Indicates that the method specified in the request line isn't allowed for the resource identified by the request URI.


F:WebSocketSharp.Net.HttpStatusCode.NotAcceptable

Equivalent to status code 406. Indicates that the server doesn't have the appropriate resource to respond to the Accept headers in the client's request.


F:WebSocketSharp.Net.HttpStatusCode.ProxyAuthenticationRequired

Equivalent to status code 407. Indicates that the client must first authenticate itself with the proxy.


F:WebSocketSharp.Net.HttpStatusCode.RequestTimeout

Equivalent to status code 408. Indicates that the client didn't produce a request within the time that the server was prepared to wait.


F:WebSocketSharp.Net.HttpStatusCode.Conflict

Equivalent to status code 409. Indicates that the client's request couldn't be completed due to a conflict on the server.


F:WebSocketSharp.Net.HttpStatusCode.Gone

Equivalent to status code 410. Indicates that the requested resource is no longer available at the server and no forwarding address is known.


F:WebSocketSharp.Net.HttpStatusCode.LengthRequired

Equivalent to status code 411. Indicates that the server refuses to accept the client's request without a defined Content-Length.


F:WebSocketSharp.Net.HttpStatusCode.PreconditionFailed

Equivalent to status code 412. Indicates that the precondition given in one or more of the request headers evaluated to false when it was tested on the server.


F:WebSocketSharp.Net.HttpStatusCode.RequestEntityTooLarge

Equivalent to status code 413. Indicates that the entity of the client's request is larger than the server is willing or able to process.


F:WebSocketSharp.Net.HttpStatusCode.RequestUriTooLong

Equivalent to status code 414. Indicates that the request URI is longer than the server is willing to interpret.


F:WebSocketSharp.Net.HttpStatusCode.UnsupportedMediaType

Equivalent to status code 415. Indicates that the entity of the client's request is in a format not supported by the requested resource for the requested method.


F:WebSocketSharp.Net.HttpStatusCode.RequestedRangeNotSatisfiable

Equivalent to status code 416. Indicates that none of the range specifier values in a Range request header overlap the current extent of the selected resource.


F:WebSocketSharp.Net.HttpStatusCode.ExpectationFailed

Equivalent to status code 417. Indicates that the expectation given in an Expect request header couldn't be met by the server.


F:WebSocketSharp.Net.HttpStatusCode.InternalServerError

Equivalent to status code 500. Indicates that the server encountered an unexpected condition which prevented it from fulfilling the client's request.


F:WebSocketSharp.Net.HttpStatusCode.NotImplemented

Equivalent to status code 501. Indicates that the server doesn't support the functionality required to fulfill the client's request.


F:WebSocketSharp.Net.HttpStatusCode.BadGateway

Equivalent to status code 502. Indicates that a gateway or proxy server received an invalid response from the upstream server.


F:WebSocketSharp.Net.HttpStatusCode.ServiceUnavailable

Equivalent to status code 503. Indicates that the server is currently unable to handle the client's request due to a temporary overloading or maintenance of the server.


F:WebSocketSharp.Net.HttpStatusCode.GatewayTimeout

Equivalent to status code 504. Indicates that a gateway or proxy server didn't receive a timely response from the upstream server or some other auxiliary server.


F:WebSocketSharp.Net.HttpStatusCode.HttpVersionNotSupported

Equivalent to status code 505. Indicates that the server doesn't support the HTTP version used in the client's request.


T:WebSocketSharp.Net.WebSockets.HttpListenerWebSocketContext

Provides the properties used to access the information in a WebSocket connection request received by the .


P:WebSocketSharp.Net.WebSockets.HttpListenerWebSocketContext.CookieCollection

Gets the HTTP cookies included in the request.


P:WebSocketSharp.Net.WebSockets.HttpListenerWebSocketContext.Headers

Gets the HTTP headers included in the request.


P:WebSocketSharp.Net.WebSockets.HttpListenerWebSocketContext.Host

Gets the value of the Host header included in the request.


P:WebSocketSharp.Net.WebSockets.HttpListenerWebSocketContext.IsAuthenticated

Gets a value indicating whether the client is authenticated.


P:WebSocketSharp.Net.WebSockets.HttpListenerWebSocketContext.IsLocal

Gets a value indicating whether the client connected from the local computer.


P:WebSocketSharp.Net.WebSockets.HttpListenerWebSocketContext.IsSecureConnection

Gets a value indicating whether the WebSocket connection is secured.


P:WebSocketSharp.Net.WebSockets.HttpListenerWebSocketContext.IsWebSocketRequest

Gets a value indicating whether the request is a WebSocket connection request.


P:WebSocketSharp.Net.WebSockets.HttpListenerWebSocketContext.Origin

Gets the value of the Origin header included in the request.


P:WebSocketSharp.Net.WebSockets.HttpListenerWebSocketContext.QueryString

Gets the query string included in the request.


P:WebSocketSharp.Net.WebSockets.HttpListenerWebSocketContext.RequestUri

Gets the URI requested by the client.


P:WebSocketSharp.Net.WebSockets.HttpListenerWebSocketContext.SecWebSocketKey

Gets the value of the Sec-WebSocket-Key header included in the request.

This property provides a part of the information used by the server to prove that it received a valid WebSocket connection request.


P:WebSocketSharp.Net.WebSockets.HttpListenerWebSocketContext.SecWebSocketProtocols

Gets the values of the Sec-WebSocket-Protocol header included in the request.

This property represents the subprotocols requested by the client.


P:WebSocketSharp.Net.WebSockets.HttpListenerWebSocketContext.SecWebSocketVersion

Gets the value of the Sec-WebSocket-Version header included in the request.

This property represents the WebSocket protocol version.


P:WebSocketSharp.Net.WebSockets.HttpListenerWebSocketContext.ServerEndPoint

Gets the server endpoint as an IP address and a port number.


P:WebSocketSharp.Net.WebSockets.HttpListenerWebSocketContext.User

Gets the client information (identity, authentication, and security roles).


P:WebSocketSharp.Net.WebSockets.HttpListenerWebSocketContext.UserEndPoint

Gets the client endpoint as an IP address and a port number.


P:WebSocketSharp.Net.WebSockets.HttpListenerWebSocketContext.WebSocket

Gets the instance used for two-way communication between client and server.


M:WebSocketSharp.Net.WebSockets.HttpListenerWebSocketContext.ToString

Returns a that represents the current .

Returns: A that represents the current .


T:WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext

Provides the properties used to access the information in a WebSocket connection request received by the .


P:WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext.CookieCollection

Gets the HTTP cookies included in the request.


P:WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext.Headers

Gets the HTTP headers included in the request.


P:WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext.Host

Gets the value of the Host header included in the request.


P:WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext.IsAuthenticated

Gets a value indicating whether the client is authenticated.


P:WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext.IsLocal

Gets a value indicating whether the client connected from the local computer.


P:WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext.IsSecureConnection

Gets a value indicating whether the WebSocket connection is secured.


P:WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext.IsWebSocketRequest

Gets a value indicating whether the request is a WebSocket connection request.


P:WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext.Origin

Gets the value of the Origin header included in the request.


P:WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext.QueryString

Gets the query string included in the request.


P:WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext.RequestUri

Gets the URI requested by the client.


P:WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext.SecWebSocketKey

Gets the value of the Sec-WebSocket-Key header included in the request.

This property provides a part of the information used by the server to prove that it received a valid WebSocket connection request.


P:WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext.SecWebSocketProtocols

Gets the values of the Sec-WebSocket-Protocol header included in the request.

This property represents the subprotocols requested by the client.


P:WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext.SecWebSocketVersion

Gets the value of the Sec-WebSocket-Version header included in the request.

This property represents the WebSocket protocol version.


P:WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext.ServerEndPoint

Gets the server endpoint as an IP address and a port number.


P:WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext.User

Gets the client information (identity, authentication, and security roles).


P:WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext.UserEndPoint

Gets the client endpoint as an IP address and a port number.


P:WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext.WebSocket

Gets the instance used for two-way communication between client and server.


M:WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext.ToString

Returns a that represents the current .

Returns: A that represents the current .


T:WebSocketSharp.Net.WebSockets.WebSocketContext

Exposes the properties used to access the information in a WebSocket connection request.

The WebSocketContext class is an abstract class.


P:WebSocketSharp.Net.WebSockets.WebSocketContext.CookieCollection

Gets the HTTP cookies included in the request.


P:WebSocketSharp.Net.WebSockets.WebSocketContext.Headers

Gets the HTTP headers included in the request.


P:WebSocketSharp.Net.WebSockets.WebSocketContext.Host

Gets the value of the Host header included in the request.


P:WebSocketSharp.Net.WebSockets.WebSocketContext.IsAuthenticated

Gets a value indicating whether the client is authenticated.


P:WebSocketSharp.Net.WebSockets.WebSocketContext.IsLocal

Gets a value indicating whether the client connected from the local computer.


P:WebSocketSharp.Net.WebSockets.WebSocketContext.IsSecureConnection

Gets a value indicating whether the WebSocket connection is secured.


P:WebSocketSharp.Net.WebSockets.WebSocketContext.IsWebSocketRequest

Gets a value indicating whether the request is a WebSocket connection request.


P:WebSocketSharp.Net.WebSockets.WebSocketContext.Origin

Gets the value of the Origin header included in the request.


P:WebSocketSharp.Net.WebSockets.WebSocketContext.QueryString

Gets the query string included in the request.


P:WebSocketSharp.Net.WebSockets.WebSocketContext.RequestUri

Gets the URI requested by the client.


P:WebSocketSharp.Net.WebSockets.WebSocketContext.SecWebSocketKey

Gets the value of the Sec-WebSocket-Key header included in the request.

This property provides a part of the information used by the server to prove that it received a valid WebSocket connection request.


P:WebSocketSharp.Net.WebSockets.WebSocketContext.SecWebSocketProtocols

Gets the values of the Sec-WebSocket-Protocol header included in the request.

This property represents the subprotocols requested by the client.


P:WebSocketSharp.Net.WebSockets.WebSocketContext.SecWebSocketVersion

Gets the value of the Sec-WebSocket-Version header included in the request.

This property represents the WebSocket protocol version.


P:WebSocketSharp.Net.WebSockets.WebSocketContext.ServerEndPoint

Gets the server endpoint as an IP address and a port number.


P:WebSocketSharp.Net.WebSockets.WebSocketContext.User

Gets the client information (identity, authentication, and security roles).


P:WebSocketSharp.Net.WebSockets.WebSocketContext.UserEndPoint

Gets the client endpoint as an IP address and a port number.


P:WebSocketSharp.Net.WebSockets.WebSocketContext.WebSocket

Gets the instance used for two-way communication between client and server.


T:WebSocketSharp.Net.HttpBasicIdentity

Holds the user name and password from the HTTP Basic authentication credentials.


P:WebSocketSharp.Net.HttpBasicIdentity.Password

Gets the password from the HTTP Basic authentication credentials.


T:WebSocketSharp.Net.HttpDigestIdentity

Holds the user name and other parameters from the HTTP Digest authentication credentials.


P:WebSocketSharp.Net.HttpDigestIdentity.Algorithm

Gets the algorithm parameter from the HTTP Digest authentication credentials.


P:WebSocketSharp.Net.HttpDigestIdentity.Cnonce

Gets the cnonce parameter from the HTTP Digest authentication credentials.


P:WebSocketSharp.Net.HttpDigestIdentity.Nc

Gets the nc parameter from the HTTP Digest authentication credentials.


P:WebSocketSharp.Net.HttpDigestIdentity.Nonce

Gets the nonce parameter from the HTTP Digest authentication credentials.


P:WebSocketSharp.Net.HttpDigestIdentity.Opaque

Gets the opaque parameter from the HTTP Digest authentication credentials.


P:WebSocketSharp.Net.HttpDigestIdentity.Qop

Gets the qop parameter from the HTTP Digest authentication credentials.


P:WebSocketSharp.Net.HttpDigestIdentity.Realm

Gets the realm parameter from the HTTP Digest authentication credentials.


P:WebSocketSharp.Net.HttpDigestIdentity.Response

Gets the response parameter from the HTTP Digest authentication credentials.


P:WebSocketSharp.Net.HttpDigestIdentity.Uri

Gets the uri parameter from the HTTP Digest authentication credentials.


T:WebSocketSharp.Net.NetworkCredential

Provides the credentials for HTTP authentication (Basic/Digest).


M:WebSocketSharp.Net.NetworkCredential.#ctor(System.String,System.String)

Initializes a new instance of the class with the specified user name and password.

Name Description
username: A [[
Name Description
----- ------
password: A [[

M:WebSocketSharp.Net.NetworkCredential.#ctor(System.String,System.String,System.String,System.String[])

Initializes a new instance of the class with the specified user name, password, domain, and roles.

Name Description
username: A [[
Name Description
----- ------
password: A [[
Name Description
----- ------
domain: A [[
Name Description
----- ------
roles: An array of [[

P:WebSocketSharp.Net.NetworkCredential.Domain

Gets the name of the user domain associated with the credentials.


P:WebSocketSharp.Net.NetworkCredential.Password

Gets the password for the user name associated with the credentials.


P:WebSocketSharp.Net.NetworkCredential.Roles

Gets the role names to which the user associated with the credentials belongs.


P:WebSocketSharp.Net.NetworkCredential.UserName

Gets the user name associated with the credentials.


T:WebSocketSharp.CloseStatusCode

Contains the values of the status code for the WebSocket connection close.


F:WebSocketSharp.CloseStatusCode.Normal

Equivalent to close status 1000. Indicates a normal close.


F:WebSocketSharp.CloseStatusCode.Away

Equivalent to close status 1001. Indicates that an endpoint is going away.


F:WebSocketSharp.CloseStatusCode.ProtocolError

Equivalent to close status 1002. Indicates that an endpoint is terminating the connection due to a protocol error.


F:WebSocketSharp.CloseStatusCode.IncorrectData

Equivalent to close status 1003. Indicates that an endpoint is terminating the connection because it has received an unacceptable type message.


F:WebSocketSharp.CloseStatusCode.Undefined

Equivalent to close status 1004. Still undefined. A Reserved value.


F:WebSocketSharp.CloseStatusCode.NoStatusCode

Equivalent to close status 1005. Indicates that no status code was actually present. A Reserved value.


F:WebSocketSharp.CloseStatusCode.Abnormal

Equivalent to close status 1006. Indicates that the connection was closed abnormally. A Reserved value.


F:WebSocketSharp.CloseStatusCode.InconsistentData

Equivalent to close status 1007. Indicates that an endpoint is terminating the connection because it has received a message that contains a data that isn't consistent with the type of the message.


F:WebSocketSharp.CloseStatusCode.PolicyViolation

Equivalent to close status 1008. Indicates that an endpoint is terminating the connection because it has received a message that violates its policy.


F:WebSocketSharp.CloseStatusCode.TooBig

Equivalent to close status 1009. Indicates that an endpoint is terminating the connection because it has received a message that is too big to process.


F:WebSocketSharp.CloseStatusCode.IgnoreExtension

Equivalent to close status 1010. Indicates that the client is terminating the connection because it has expected the server to negotiate one or more extension, but the server didn't return them in the handshake response.


F:WebSocketSharp.CloseStatusCode.ServerError

Equivalent to close status 1011. Indicates that the server is terminating the connection because it has encountered an unexpected condition that prevented it from fulfilling the request.


F:WebSocketSharp.CloseStatusCode.TlsHandshakeFailure

Equivalent to close status 1015. Indicates that the connection was closed due to a failure to perform a TLS handshake. A Reserved value.


T:WebSocketSharp.Opcode

Contains the values of the opcode that indicates the type of a WebSocket frame.


F:WebSocketSharp.Opcode.Cont

Equivalent to numeric value 0. Indicates a continuation frame.


F:WebSocketSharp.Opcode.Text

Equivalent to numeric value 1. Indicates a text frame.


F:WebSocketSharp.Opcode.Binary

Equivalent to numeric value 2. Indicates a binary frame.


F:WebSocketSharp.Opcode.Close

Equivalent to numeric value 8. Indicates a connection close frame.


F:WebSocketSharp.Opcode.Ping

Equivalent to numeric value 9. Indicates a ping frame.


F:WebSocketSharp.Opcode.Pong

Equivalent to numeric value 10. Indicates a pong frame.


T:WebSocketSharp.CompressionMethod

Contains the values of the compression method used to compress the message on the WebSocket connection.


F:WebSocketSharp.CompressionMethod.None

Indicates non compression.


F:WebSocketSharp.CompressionMethod.Deflate

Indicates using DEFLATE.


T:WebSocketSharp.WebSocketException

The exception that is thrown when a gets a fatal error.


P:WebSocketSharp.WebSocketException.Code

Gets the status code indicating the cause of the exception.


T:WebSocketSharp.WebSocketState

Contains the values of the state of the WebSocket connection.


F:WebSocketSharp.WebSocketState.Connecting

Equivalent to numeric value 0. Indicates that the connection hasn't yet been established.


F:WebSocketSharp.WebSocketState.Open

Equivalent to numeric value 1. Indicates that the connection is established and the communication is possible.


F:WebSocketSharp.WebSocketState.Closing

Equivalent to numeric value 2. Indicates that the connection is going through the closing handshake or the method has been invoked.


F:WebSocketSharp.WebSocketState.Closed

Equivalent to numeric value 3. Indicates that the connection has been closed or couldn't be opened.


Clone this wiki locally