WSConnector Class |
Namespace: IBM.Watson.DeveloperCloud.Connection
public class WSConnector
The WSConnector type exposes the following members.
| Name | Description | |
|---|---|---|
| WSConnector | Initializes a new instance of the WSConnector class |
| Name | Description | |
|---|---|---|
| Authentication |
Credentials used to authenticate with the server.
| |
| Headers |
Headers to pass when making the socket.
| |
| OnClose |
This delegate is invoked when the connection is closed.
| |
| OnMessage |
This delegate is invoked when a message is received for a socket.
| |
| State |
The current state of this connector.
| |
| URL |
The URL of the WebSocket.
|
| Name | Description | |
|---|---|---|
| Close |
This closes this connector, it will block until the send thread exits.
| |
| CreateConnector |
Create a WSConnector for the given service and function.
| |
| FixupURL |
Helper function to convert a HTTP/HTTPS url into a WS/WSS URL.
| |
| Send |
This function sends the given message object.
|