Click or drag to resize

WSConnector Class

WebSocket connector class.
Inheritance Hierarchy
SystemObject
  IBM.Watson.DeveloperCloud.ConnectionWSConnector

Namespace:  IBM.Watson.DeveloperCloud.Connection
Assembly:  unity-documentation (in unity-documentation.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class WSConnector

The WSConnector type exposes the following members.

Constructors
  NameDescription
Public methodWSConnector
Initializes a new instance of the WSConnector class
Top
Properties
  NameDescription
Public propertyAuthentication
Credentials used to authenticate with the server.
Public propertyHeaders
Headers to pass when making the socket.
Public propertyOnClose
This delegate is invoked when the connection is closed.
Public propertyOnMessage
This delegate is invoked when a message is received for a socket.
Public propertyState
The current state of this connector.
Public propertyURL
The URL of the WebSocket.
Top
Methods
  NameDescription
Public methodClose
This closes this connector, it will block until the send thread exits.
Public methodStatic memberCreateConnector
Create a WSConnector for the given service and function.
Public methodStatic memberFixupURL
Helper function to convert a HTTP/HTTPS url into a WS/WSS URL.
Public methodSend
This function sends the given message object.
Top
See Also