# websocket-sharp

A C# implementation of the WebSocket protocol client & server.

## WebSocketSharp Namespace

The WebSocketSharp namespace contains classes and enumerations to implement the WebSocket interface.

Type | Description
--- | ---
ByteOrder | Contains the values that indicate whether the byte order is a Little-endian or Big-endian.
CloseEventArgs | Contains the event data associated with a WebSocketSharp.WebSocket.OnClose event.
CloseStatusCode | Contains the values of the status codes for the WebSocket connection closure.
CompressionMethod | Contains the values of the compression methods used to compress the payload data of the WebSocket Data frame.
ErrorEventArgs | Contains the event data associated with a error event.
Ext | Provides a set of static methods for the websocket-sharp.
MessageEventArgs | Contains the event data associated with a WebSocketSharp.WebSocket.OnMessage event.
Opcode | Contains the values of the opcodes that denotes the frame type of the WebSocket frame.
WebSocket | Implements the WebSocket interface.
WebSocketException | Represents the exception that occurred when attempting to perform an operation on the WebSocket connection.
WsState | Contains the values of the state of the WebSocket connection.

## WebSocketSharp.Net Namespace

The WebSocketSharp.Net namespace contains some modified classes and enumerations in the System.Net namespace (e.g. System.Net.HttpListenerContext) to accept the WebSocket connection requests.

Type | Description
--- | ---
AuthenticationSchemes | Contains the values of the schemes for authentication.
AuthenticationSchemeSelector | Selects the authentication scheme for a WebSocketSharp.Net.HttpListener instance.
Cookie | Provides a set of properties and methods used to manage an HTTP Cookie.
CookieCollection | Provides a collection container for instances of the WebSocketSharp.Net.Cookie class.
CookieException | The exception that is thrown when a WebSocketSharp.Net.Cookie gets an error.
HttpListener | Provides a simple, programmatically controlled HTTP listener.
HttpListenerContext | Provides access to the HTTP request and response objects used by the WebSocketSharp.Net.HttpListener class.
HttpListenerException | The exception that is thrown when an error occurs processing an HTTP request.
HttpListenerPrefixCollection | Provides the collection used to store the URI prefixes for the WebSocketSharp.Net.HttpListener.
HttpListenerRequest | Provides access to a request to a WebSocketSharp.Net.HttpListener instance.
HttpListenerResponse | Provides access to a response to a request being processed by a WebSocketSharp.Net.HttpListener instance.
HttpStatusCode | Contains the values of the HTTP status codes.
HttpVersion | Provides the HTTP version numbers.
WebHeaderCollection | Provides a collection of the HTTP headers associated with a request or response.

## WebSocketSharp.Net.WebSockets Namespace

The WebSocketSharp.Net.WebSockets namespace contains classes to access to the WebSocket connection request objects.

Type | Description
--- | ---
HttpListenerWebSocketContext | Provides access to the WebSocket connection request objects received by the WebSocketSharp.Net.HttpListener class.
TcpListenerWebSocketContext | Provides access to the WebSocket connection request objects received by the System.Net.Sockets.TcpListener class.
WebSocketContext | Provides access to the WebSocket connection request objects.

## WebSocketSharp.Server Namespace

The WebSocketSharp.Server namespace contains classes to implement the server that receives the WebSocket connection requests.

Type | Description
--- | ---
HttpRequestEventArgs | Contains the event data associated with the HTTP request events of the WebSocketSharp.Server.HttpServer class.
HttpServer | Provides a simple HTTP server that allows to accept the WebSocket connection requests.
IServiceHost | Exposes the methods and property for the host that provides a WebSocketSharp.Server.WebSocketService.
WebSocketServer | Provides the functions of the server that receives the WebSocket connection requests.
WebSocketServerBase | Provides the basic functions of the server that receives the WebSocket connection requests.
WebSocketService | Provides the basic functions of the WebSocket service.
WebSocketServiceHost<T> | Provides the functions of the server that receives the WebSocket connection requests.
WebSocketServiceManager | Manages the collection of WebSocketSharp.Server.WebSocketService objects.

Copyright (c) 2010-2013 sta.blockhead