The WebSocket type exposes the following members.
Back to Top
Methods
Name | Description | |
---|---|---|
ClearHeaders |
Clears the list of HTTP headers for this WebSocket.
| |
Close |
Closes the WebSocket.
| |
ContainsHeader |
Determines whether this WebSocket contains a particular HTTP header.
| |
Dispose | ||
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
getCPtr |
For internal use only. Of no interest to the user.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetHeaderValue |
Gets the value of the specified HTTP request header.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Open |
Opens the WebSocket.
| |
RemoveHeader |
Removes an HTTP header from this WebSocket.
| |
SendMessage(String) |
Send a text message to the server.
| |
SendMessage(WebSocketMessage) |
Send a message to the server.
| |
SendMessage( Byte , Boolean) |
Send a message to the server.
| |
SendMessageFromFile(String, Boolean) |
Send a message to the server, by loading the message data from a file.
| |
SendMessageFromFile(String, Boolean, Int32) |
Send a message to the server, by loading the message data from a file.
| |
SetHeader(String) |
Sets an HTTP header to use in the opening handshake request for this WebSocket, using the contents of the specified string.
| |
SetHeader(String, String) |
Sets an HTTP header to use in the opening handshake request for this WebSocket, as a name/value pair.
| |
SetReferer |
Sets the value of the "Referer" HTTP header.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UnsetReferer |
Removes the "Referer" HTTP header.
|
See Also