# IWebSocketSessionContainer Interface

Namespace: [Qlik.Sense.JsonRpc](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.htm)  
Assembly: Qlik.Sense.JsonRpc.dll

Interface used for managing web socket connections to Qlik Sense.

## Syntax

```
public interface IWebSocketSessionContainer
```

## Properties

| Name | Description |
| --- | --- |
| [IsConnected](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.IWebSocketSessionContainer.IsConnected.htm#Qlik_Sense_JsonRpc_IWebSocketSessionContainer_IsConnected) | True if websocket connection is open |
| [Log](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.IWebSocketSessionContainer.Log.htm#Qlik_Sense_JsonRpc_IWebSocketSessionContainer_Log) | The method to use when printing logs for this interface. |
| [SessionSpecificWebsocketParameters](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.IWebSocketSessionContainer.SessionSpecificWebsocketParameters.htm#Qlik_Sense_JsonRpc_IWebSocketSessionContainer_SessionSpecificWebsocketParameters) | Websocket parameters associated with a specific session. |

## Methods

| Name | Description |
| --- | --- |
| [Close()](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.IWebSocketSessionContainer.Close.htm#Qlik_Sense_JsonRpc_IWebSocketSessionContainer_Close) | Close an open connection to a Qlik Sense instance. Operation has no effect if the connection is not open. |
| [OpenAsync(Action<String>, Action<Exception>, CancellationToken)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.IWebSocketSessionContainer.OpenAsync.htm#Qlik_Sense_JsonRpc_IWebSocketSessionContainer_OpenAsync_System_Action_System_String__System_Action_System_Exception__System_Threading_CancellationToken_) | Open a connection to a Qlik Sense instance based on the current location configuration and the argument session. |
| [SendMessage(String, Action<Exception>)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.IWebSocketSessionContainer.SendMessage.htm#Qlik_Sense_JsonRpc_IWebSocketSessionContainer_SendMessage_System_String_System_Action_System_Exception__) | Send a message to a Qlik Sense instance. |