/home/starless/Projects/websocket-sharp/websocket-sharp/bin/Release_Ubuntu/websocket-sharp Provides a set of static methods for the websocket-sharp. Accept a WebSocket connection by the . A that contains a WebSocket connection. A that contains a TCP connection to accept a WebSocket connection from. A that indicates a secure connection or not. (true indicates a secure connection.) Is thrown when the parameter passed to a method is invalid because it is . Emit the specified delegate if is not . An to emit. An that emits the . An that contains no event data. Emit the specified EventHandler<TEventArgs> delegate if is not . An EventHandler<TEventArgs> to emit. An that emits the . A TEventArgs that contains the event data. The type of the event data generated by the event. Determines whether the specified equals the specified as . And save this specified as to the specified List<byte>. true if the parameter equals the parameter as ; otherwise, false. An to compare. A to compare. A List<byte> to save the as . Is thrown when the parameter passed to a method is invalid because it is outside the allowable range of values as . Determines whether the entry with the specified key exists in the specified . true if the entry with the exists in the ; otherwise, false. A that contains the entries. A that contains the key of the entry to find. Determines whether the entry with the specified both key and value exists in the specified . true if the entry with the both and exists in the ; otherwise, false. A that contains the entries. A that contains the key of the entry to find. A that contains the value of the entry to find. Gets the absolute path from the specified . A that contains the absolute path if got successfully; otherwise, . A that contains the URI to get the absolute path from. Gets the description of the HTTP status code using the specified code. A that contains the description of the . One of values that contains the HTTP status code. Gets the name from the specified that contains a pair of name and value are separated by a separator string. A that contains the name if any; otherwise, null. A that contains a pair of name and value are separated by a separator string. A that contains a separator string. Gets the name and value from the specified that contains a pair of name and value are separated by a separator string. A KeyValuePair<string, string> that contains the name and value if any. A that contains a pair of name and value are separated by a separator string. A that contains a separator string. Gets the description of the HTTP status code using the specified code. A that contains the description of the . An that contains the HTTP status code. Gets the value from the specified that contains a pair of name and value are separated by a separator string. A that contains the value if any; otherwise, null. A that contains a pair of name and value are separated by a separator string. A that contains a separator string. Determines whether the specified is a . true if the parameter is a ; otherwise, false. A to test. Determines whether the specified is host (this computer architecture) byte order. true if the parameter is host byte order; otherwise, false. A to test. Determines whether the specified object is . true if the parameter is ; otherwise, false. A class to test. The type of the parameter. Determines whether the specified object is . And invokes the specified delegate if the specified object is . true if the parameter is ; otherwise, false. A class to test. An delegate that contains the method(s) called if the is . The type of the parameter. Determines whether the specified is or . true if the parameter is or ; otherwise, false. A to test. Determines whether the specified is predefined scheme. true if the parameter is the predefined scheme; otherwise, false. A to test. Determines whether the specified is valid absolute path. true if the parameter is valid absolute path; otherwise, false. A to test. A that receives a message if the is invalid. Determines whether the specified is a URI string. true if the parameter is maybe a URI string; otherwise, false. A to test. Determines whether two specified objects don't have the same value. true if the value of parameter isn't the same as the value of parameter; otherwise, false. The first to compare. The second to compare. A that indicates a case-sensitive or insensitive comparison. (true indicates a case-insensitive comparison.) Reads a block of bytes from the specified stream and returns the read data in an array of . An array of that receives the read data. A that contains the data to read. An that contains the number of bytes to read. Reads a block of bytes from the specified stream and returns the read data in an array of . An array of that receives the read data. A that contains the data to read. A that contains the number of bytes to read. Reads a block of bytes from the specified stream and returns the read data in an array of . An array of that receives the read data. A that contains the data to read. A that contains the number of bytes to read. An that contains the buffer size in bytes of each internal read. Retrieves a sub-array from the specified . A sub-array starts at the specified element position. An array of T that receives a sub-array, or an empty array of T if any problems with the parameters. An array of T that contains the data to retrieve a sub-array. An that contains the zero-based starting position of a sub-array in the . An that contains the number of elements to retrieve a sub-array. The type of elements in the . Executes the specified delegate times. An that contains the number of times to execute. An delegate that contains the method(s) to execute. Executes the specified delegate times. A that contains the number of times to execute. An delegate that contains the method(s) to execute. Executes the specified delegate times. A that contains the number of times to execute. An delegate that contains the method(s) to execute. Executes the specified delegate times. A that contains the number of times to execute. An delegate that contains the method(s) to execute. Executes the specified Action<ulong> delegate times. An that contains the number of times to execute. An Action<ulong> delegate that contains the method(s) to execute. A parameter to pass to this method(s) contains the zero-based count of iteration. Executes the specified Action<ulong> delegate times. A that contains the number of times to execute. An Action<ulong> delegate that contains the method(s) to execute. A parameter to pass to this method(s) contains the zero-based count of iteration. Executes the specified Action<ulong> delegate times. A that contains the number of times to execute. An Action<ulong> delegate that contains the method(s) to execute. A parameter to pass to this method(s) contains the zero-based count of iteration. Executes the specified Action<ulong> delegate times. A that contains the number of times to execute. An Action<ulong> delegate that contains the method(s) to execute. A parameter to pass to this method(s) contains the zero-based count of iteration. Converts the specified array of to the specified type data. A T converted from the , or a default value of T if the is an empty array of or if the types of T aren't the , , , , , , , , , . An array of to convert. A that indicates the byte order of the . The type of the return value. The T must be a value type. Is thrown when the parameter passed to a method is invalid because it is . Converts the specified data to an array of . An array of converted from the . A T to convert. A that indicates the byte order of the return. The type of the . The T must be a value type. Converts the order of the specified array of to the host byte order. An array of converted from the . An array of to convert. A that indicates the byte order of the . Is thrown when the parameter passed to a method is invalid because it is . Converts the specified array to a concatenated the specified separator string between each element of this array. A converted from the parameter, or a if the length of the is zero. An array of T to convert. A that contains a separator string. The type of elements in the . Is thrown when the parameter passed to a method is invalid because it is . Converts the specified to a object. A converted from the parameter, or if the is or . A to convert. Tries to create a new WebSocket using the specified . true if the WebSocket was successfully created; otherwise, false. A that contains a WebSocket URI. When this method returns, contains a created WebSocket if the parameter is valid WebSocket URI; otherwise, . When this method returns, contains a error message if the parameter is invalid WebSocket URI; otherwise, String.Empty. Is thrown when the parameter passed to a method is invalid because it is . URL-decodes the specified . A that receives a decoded string, or the parameter if the is or . A to decode. URL-encodes the specified . A that receives a encoded string, or the parameter if the is or . A to encode. Writes the specified content data using the specified . A that contains a network stream to write a content data. An array of that contains a content data to write. Is thrown when the parameter passed to a method is invalid because it is . Contains the values of the state of the WebSocket connection. The WsState enumeration contains the values of the state of the WebSocket connection defined in The WebSocket API. Equivalent to numeric value 0. Indicates that the connection has not yet been established. Equivalent to numeric value 1. Indicates that the connection is established and communication is possible. Equivalent to numeric value 2. Indicates that the connection is going through the closing handshake, or the Close method has been invoked. Equivalent to numeric value 3. Indicates that the connection has been closed or could not be opened. Contains the event data associated with a event. The event occurs when the WebSocket receives a text or binary data frame. If you want to get the received data, you should access the or properties. Gets the received data as a . A that contains a received data. Gets the received data as an array of . An array of that contains a received data. Gets the type of received data. One of the that indicates the type of received data. Contains the event data associated with a event. The event occurs when the WebSocket receives a close control frame or the WebSocket.Close method is called. If you want to get the reason for closure, you should access the or properties. Gets the status code for closure. A that contains a status code for closure. Gets the reason for closure. A that contains a reason for closure. Indicates whether the connection closed cleanly or not. true if the connection closed cleanly; otherwise, false. Contains the values that indicate whether the byte order is a Little-endian or Big-endian. Indicates a Little-endian. Indicates a Big-endian. Contains the values of the status codes for the WebSocket connection closure. The CloseStatusCode enumeration contains the values of the status codes for the WebSocket connection closure defined in RFC 6455 for the WebSocket protocol. "Reserved value" must not be set as a status code in a close control frame by an endpoint. It is designated for use in applications expecting a status code to indicate that connection was closed due to a system grounds. Equivalent to close status 1000. Indicates a normal closure. Equivalent to close status 1001. Indicates that an endpoint is "going away". Equivalent to close status 1002. Indicates that an endpoint is terminating the connection due to a protocol error. Equivalent to close status 1003. Indicates that an endpoint is terminating the connection because it has received a type of data it cannot accept. Equivalent to close status 1004. Still undefined. Reserved value. Equivalent to close status 1005. Indicates that no status code was actually present. Reserved value. Equivalent to close status 1006. Indicates that the connection was closed abnormally. Reserved value. Equivalent to close status 1007. Indicates that an endpoint is terminating the connection because it has received data within a message that was not consistent with the type of the message. Equivalent to close status 1008. Indicates that an endpoint is terminating the connection because it has received a message that violates its policy. Equivalent to close status 1009. Indicates that an endpoint is terminating the connection because it has received a message that is too big for it to process. Equivalent to close status 1010. Indicates that an endpoint (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 response message of the WebSocket handshake. Equivalent to close status 1011. Indicates that a server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request. Equivalent to close status 1015. Indicates that the connection was closed due to a failure to perform a TLS handshake. Reserved value. Contains the values of the FIN bit in the WebSocket data frame. The Fin enumeration contains the values of the FIN bit defined in RFC 6455 for the WebSocket protocol. The FIN bit indicates whether a WebSocket frame is the final fragment in a message. Equivalent to numeric value 0. Indicates that more frames follow. Equivalent to numeric value 1. Indicates a final frame. Contains the values of the MASK bit in the WebSocket data frame. The Mask enumeration contains the values of the MASK bit defined in RFC 6455 for the WebSocket protocol. The MASK bit indicates whether the payload data in a WebSocket frame is masked. Equivalent to numeric value 0. Indicates that the payload data in a frame is not masked, no masking key in this frame. Equivalent to numeric value 1. Indicates that the payload data in a frame is masked, a masking key is present in this frame. Contains the values of the opcodes that denotes the frame type of the WebSocket frame. The Opcode enumeration contains the values of the opcodes defined in RFC 6455 for the WebSocket protocol. Equivalent to numeric value 0. Indicates a continuation frame. Equivalent to numeric value 1. Indicates a text frame. Equivalent to numeric value 2. Indicates a binary frame. Equivalent to numeric value 8. Indicates a connection close frame. Equivalent to numeric value 9. Indicates a ping frame. Equivalent to numeric value 10. Indicates a pong frame. Contains the values of the reserved bit in the WebSocket data frame. The Rsv enumeration contains the values of the reserved bit (RSV1, RSV2, RSV3) defined in RFC 6455 for the WebSocket protocol. The reserved bit must be zero unless an extension is negotiated that defines meanings for non-zero values. Equivalent to numeric value 0. Equivalent to numeric value 1. Contains the event data associated with a error event. The error event occurs when this event sender gets an error. If you want to get the error message, you should access the property. Gets the error message. A that contains a error message. Implements the WebSocket interface. The WebSocket class provides methods and properties for two-way communication using the WebSocket protocol (RFC 6455). Initializes a new instance of the class with the specified WebSocket URL and subprotocols. A that contains the WebSocket URL. An array of that contains the WebSocket subprotocols if any. is . is not valid WebSocket URL. Initializes a new instance of the class with the specified WebSocket URL, OnOpen, OnMessage, OnError, OnClose event handlers and subprotocols. A that contains the WebSocket URL. An OnOpen event handler. An OnMessage event handler. An OnError event handler. An OnClose event handler. An array of that contains the WebSocket subprotocols if any. is . is not valid WebSocket URL. Occurs when the WebSocket connection has been established. Occurs when the WebSocket receives a data frame. Occurs when the WebSocket gets an error. Occurs when the WebSocket receives a Close frame or the Close method is called. Gets the extensions selected by the server. A that contains the extensions if any. By default, String.Empty. (Currently this will only ever be the String.Empty.) Gets a value indicating whether a connection is alive. true if the connection is alive; otherwise, false. Gets a value indicating whether a connection is secure. true if the connection is secure; otherwise, false. Gets the subprotocol selected by the server. A that contains the subprotocol if any. By default, String.Empty. Gets the state of the connection. One of the . By default, WsState.CONNECTING. Gets the WebSocket URL. A that contains the WebSocket URL. Closes the connection and releases all associated resources after sends a Close control frame. Closes the connection and releases all associated resources after sends a Close control frame. A that contains a status code indicating a reason for closure. Closes the connection and releases all associated resources after sends a Close control frame. A that contains a status code indicating a reason for closure. Closes the connection and releases all associated resources after sends a Close control frame. A that contains a status code indicating a reason for closure. A that contains a reason for closure. Closes the connection and releases all associated resources after sends a Close control frame. A that contains a status code indicating a reason for closure. A that contains a reason for closure. Establishes a connection. Closes the connection and releases all associated resources after sends a Close control frame. Call when you are finished using the . The method leaves the in an unusable state. After calling , you must release all references to the so the garbage collector can reclaim the memory that the was occupying. Sends a Ping frame using the connection. true if the WebSocket receives a Pong frame in a time; otherwise, false. Sends a Ping frame with a message using the connection. A that contains the message to be sent. true if the WebSocket receives a Pong frame in a time; otherwise, false. Sends a text data using the connection. A that contains the text data to be sent. Sends a binary data using the connection. An array of that contains the binary data to be sent. Sends a binary data using the connection. A that contains the binary data to be sent. Sends a text data asynchronously using the connection. A that contains the text data to be sent. An delegate that contains the method(s) that is called when an asynchronous operation completes. Sends a binary data asynchronously using the connection. An array of that contains the binary data to be sent. An delegate that contains the method(s) that is called when an asynchronous operation completes. Sends a binary data asynchronously using the connection. A that contains the binary data to be sent. An delegate that contains the method(s) that is called when an asynchronous operation completes. Decodes an HTML-encoded string and returns the decoded string. The HTML string to decode. The decoded text. Decodes an HTML-encoded string and sends the resulting output to a TextWriter output stream. The HTML string to decode. The TextWriter output stream containing the decoded string. HTML-encodes a string and returns the encoded string. The text string to encode. The HTML-encoded text. HTML-encodes a string and sends the resulting output to a TextWriter output stream. The string to encode. The TextWriter output stream containing the encoded string. Provides the basic functions of the server that receives the WebSocket connection requests. The WebSocketServerBase class is an abstract class. Initializes a new instance of the class. Initializes a new instance of the class that listens for incoming connection attempts on the specified WebSocket URL. A that contains a WebSocket URL. is . is invalid. Initializes a new instance of the class that listens for incoming connection attempts on the specified , , and . An that contains a local IP address. An that contains a port number. A that contains a absolute path. A that indicates providing a secure connection or not. (true indicates providing a secure connection.) Either or is . is invalid. -or- Pair of and is invalid. Occurs when this server gets an error. Gets or sets the WebSocket URL on which to listen for incoming connection attempts. A that contains a WebSocket URL. Gets the local IP address on which to listen for incoming connection attempts. A that contains a local IP address. Gets a value indicating whether this server is secure. true if this server is secure; otherwise, false. Gets a value indicating whether this server is self host. true if this server is self host; otherwise, false. Gets the port on which to listen for incoming connection attempts. An that contains a port number. Accepts the WebSocket connection. A that contains the WebSocket connection. Occurs the event with the specified . A that contains an error message. Starts to receive the WebSocket connection requests. Stops receiving the WebSocket connection requests. Exposes the methods and property for the WebSocket service host. Indicates whether the WebSocket service host closes the connection to a inactive service client. true if the WebSocket service host closes the connection to a inactive service client; otherwise, false. Binds the specified . An to bind. Broadcasts the specified . A to broadcast. Starts the WebSocket service host. Stops the WebSocket service host.