# GetWebSocketSessionContainer Method

## Overloads

| [GetWebSocketSessionContainer(ISession)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.IGenericLocation.GetWebSocketSessionContainer.htm#Qlik_Sense_JsonRpc_IGenericLocation_GetWebSocketSessionContainer_Qlik_Sense_JsonRpc_ISession_) |  | Method for retrieving a WebSocketSessionContainer based on the current location and the argument session. |
| --- | --- | --- |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.IGenericLocation.GetWebSocketSessionContainer.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.IGenericLocation.GetWebSocketSessionContainer.htm)

## GetWebSocketSessionContainer(ISession)

Method for retrieving a WebSocketSessionContainer based on the current location and the argument session.

### Declaration

```

          IWebSocketSessionContainer GetWebSocketSessionContainer(ISession session)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [ISession](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.ISession.htm) | session | Defines a specific app session, that can be connected to. |

### Returns

| Type | Description |
| --- | --- |
| [IWebSocketSessionContainer](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.IWebSocketSessionContainer.htm) | The WebSocketSessionContainer instance. |