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.
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.
WsReceivedTooBigMessageException Documentation for this section has not yet been entered.
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 Documentation for this section has not yet been entered.
CookieCollection Documentation for this section has not yet been entered.
CookieException Documentation for this section has not yet been entered.
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 the HTTP request objects sent to a WebSocketSharp.Net.HttpListener instance.
HttpListenerResponse Documentation for this section has not yet been entered.
HttpStatusCode Contains the values of the HTTP status codes.
HttpVersion Provides the HTTP version numbers.
WebHeaderCollection Documentation for this section has not yet been entered.

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.