mobileFX WebSocketX
WebSocketX ActiveX DLL / WebSocket Object / Open Method

The WebSocket protocol URL string of the server to connect.

 

In This Topic
    Open Method
    In This Topic
    Description

    Asynchronously open WebSocket connection.

    Syntax
    Visual Basic
    Public Sub Open( _
       ByVal URL As String, _
       Optional ByVal CryptographicProtocol As WEBSOCKET_SECURITY_ENUM = INSEURE _
    ) 
    Parameters
    URL

    The WebSocket protocol URL string of the server to connect.

     

    CryptographicProtocol
    ValueDescription
    INSEURENo 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.

    Remarks

    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.

    See Also