# GetWebSocketSessionContainer Method

## Overloads

| [GetWebSocketSessionContainer(ISession)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.GenericLocation.GetWebSocketSessionContainer.htm#Qlik_Sense_JsonRpc_GenericLocation_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.GenericLocation.GetWebSocketSessionContainer.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.GenericLocation.GetWebSocketSessionContainer.htm)

## GetWebSocketSessionContainer(ISession)

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

### Declaration

```

          public IWebSocketSessionContainer GetWebSocketSessionContainer(ISession session)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [ISession](https://help.qlik.com/en-US/sense-developer/November2024/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/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.IWebSocketSessionContainer.htm) | The IWebSocketSessionContainer instance. |

### Implements

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