The WebSocket type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
![]() | WebSocket |
For internal use only. Of no interest to the user.
|
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 | Releases all resources used by the WebSocket |
![]() | 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.
|
Properties
Name | Description | |
---|---|---|
![]() | ContentType |
Gets or sets the value of the "Content-Type" HTTP header.
|
![]() | HasReferer |
Gets a value that indicates whether the "Referer" HTTP header has been set for this Request.
|
![]() | HeaderKeys |
Gets a list of names of all the HTTP request headers set in this Request.
|
![]() | ID |
Gets the unique ID that has been assigned to this WebSocket.
|
![]() | Referer |
Gets or sets the value of the "Referer" HTTP header.
|
![]() | Url |
Gets or sets the Url that this WebSocket is targeting.
|
![]() | UserAgent |
Gets or sets the value of the "User-Agent" HTTP header.
|
![]() | VU |
Gets the VirtualUser instance that this WebSocket is associated with.
|
Events
Name | Description | |
---|---|---|
![]() | Closed |
Occurs when the WebSocket is closed.
|
![]() | Error |
Occurs when an error occurs on the WebSocket.
|
![]() | ReceivedMessage |
Occurs when a message is received from the server
|
See Also