    Address = "wss://127.0.0.1:8443";
    NeedProxy = True;
    NeedTLS   = True;

    If NeedTls Then
        TLSSettings = OPI_WebSocket.GetTlsSettings(True);
    EndIf;

    If NeedProxy Then

        ProxyAddress = "127.0.0.1";
        ProxyPort    = "8071";
        ProxyType    = "http";

        ProxtUser     = "proxyuser";
        ProxyPassword = "12we...";

        ProxySettings = OPI_AddIns.GetProxySettings(ProxyAddress
            , ProxyPort
            , ProxyType
            , ProxtUser
            , ProxyPassword);

    EndIf;

    LogFile         = GetTempFileName("txt");
    LoggingSettings = OPI_WebSocket.GetLoggingSettings(True, 100, LogFile);
    Connection      = OPI_WebSocket.CreateConnection(Address, TLSSettings, ProxySettings, Undefined, LoggingSettings);
    If Not OPI_WebSocket.IsClientObject(Connection) Then
        Raise OPI_Tools.JSONString(Connection);
    EndIf;

    Result = OPI_WebSocket.GetLog(Connection);