Asynchronously open WebSocket connection.
The WebSocket protocol URL string of the server to connect.
Asynchronously open WebSocket connection.
Visual Basic |
---|
Public Sub Open( _ ByVal URL As String, _ Optional ByVal CryptographicProtocol As WEBSOCKET_SECURITY_ENUM = INSEURE _ ) |
The WebSocket protocol URL string of the server to connect.
Value | Description |
---|---|
INSEURE | No cryptographic provider. Used with ws:// protocol. |
SSLV2_CLIENT | SSL version 2 client. Used with wss:// protocol. |
SSLV23_CLIENT | SSL/TLS client. Used with wss:// protocol. |
SSLV3_CLIENT | Generic SSL version 3. Used with wss:// protocol. |
TLS_CLIENT | TLS client. Used with wss:// protocol. |
TLSV1_CLIENT | TLS version 1 client. Used with wss:// protocol. |
TLSV11_CLIENT | TLS version 1.1 client. Used with wss:// protocol. |
TLSV12_CLIENT | TLS version 1.2 client. Used with wss:// protocol. |
TLSV13_CLIENT | TLS version 1.3 client. Used with wss:// protocol. |
Asynchronously open WebSocket connection.
The accepted protocols are ws:// for insecure connection and wss:// for secure connection. When opening a secure connection you must also define the CryptographicProtocol parameter.