Skip to main content Skip to complementary content

OpenAsync Method

Overloads

OpenAsync(Action<String>, Action<Exception>, CancellationToken)

Open a connection to a Qlik Sense instance based on the current location configuration and the argument session.

OpenAsync(Action<String>, Action<Exception>, CancellationToken)

Open a connection to a Qlik Sense instance based on the current location configuration and the argument session.

Declaration

      Task<WebSocketConnectionResults> OpenAsync(Action<string> onMessage, Action<Exception> onError, CancellationToken cancellationToken)
    

Parameters

Type Name Description
System.Action<System.String> onMessage

Callback to active when messages are received from Qlik Sense.

System.Action<System.Exception> onError

Callback to activate when an exception has occured on the web socket connection to Qlik Sense.

System.Threading.CancellationToken cancellationToken

The token used to synchronize shutdown events.

Returns

Type Description
System.Threading.Tasks.Task<WebSocketConnectionResults>

A task with the completion status of the connect operation as result.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!