> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XblContextSettingsSetWebsocketTimeoutWindow

> XblContextSettingsSetWebsocketTimeoutWindow

Sets the web socket timeout window in seconds.

## Syntax

```cpp theme={null}
HRESULT XblContextSettingsSetWebsocketTimeoutWindow(  
         XblContextHandle context,  
         uint32_t timeoutWindowInSeconds  
)  
```

### Parameters

*context*   \_In\_\
Type: [XblContextHandle](https://docs.xbox.com/reference/live/xsapi-c/types_c/handles/xblcontexthandle.md)

XBOX live context that the settings are associated with.

*timeoutWindowInSeconds*   \_In\_\
Type: uint32\_t

The timeout window in seconds. Default is 300 seconds. Set to 0 to turn off retry.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Remarks

Controls how long to spend attempting to retry establishing a web socket connection before failing.

## Requirements

**Header:** xbox\_live\_context\_settings\_c.h

**Library:** Microsoft.Xbox.Services.142.C.lib or Microsoft.Xbox.Services.143.C.lib

## See also

[xbox\_live\_context\_settings\_c](https://docs.xbox.com/reference/live/xsapi-c/xbox_live_context_settings_c/xbox_live_context_settings_c_members.md)


## Related topics

- [xbox_live_context_settings_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/xbox_live_context_settings_c/xbox_live_context_settings_c_members.md)
- [XblContextSettingsGetWebsocketTimeoutWindow](https://docs.xbox.com/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgetwebsockettimeoutwindow.md)
- [XblContextSettingsSetHttpTimeoutWindow](https://docs.xbox.com/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssethttptimeoutwindow.md)
- [XblContextSettingsGetHttpTimeoutWindow](https://docs.xbox.com/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgethttptimeoutwindow.md)
- [XblContextSettingsSetLongHttpTimeout](https://docs.xbox.com/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssetlonghttptimeout.md)
