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

# XblContextSettingsSetWebsocketTimeoutWindow

> XblContextSettingsSetWebsocketTimeoutWindow

# XblContextSettingsSetWebsocketTimeoutWindow

Define a janela de tempo limite do WebSocket em segundos.

## Sintaxe

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

### Parâmetros

*context*   \_In\_\
Tipo: [XblContextHandle](/pt-BR/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

Contexto do XBOX Live ao qual as configurações estão associadas.

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

A janela de tempo limite em segundos. O padrão é 300 segundos. Defina como 0 para desativar a nova tentativa.

### Valor retornado

Tipo: HRESULT

Código de retorno HRESULT para esta operação de API.

## Comentários

Controla quanto tempo gastar tentando restabelecer uma conexão WebSocket antes de falhar.

## Requisitos

**Cabeçalho:** xbox\_live\_context\_settings\_c.h

**Biblioteca:** Microsoft.Xbox.Services.14x.GDK.C.lib

## Confira também

[xbox\_live\_context\_settings\_c](/pt-BR/reference/live/xsapi-c/xbox_live_context_settings_c/xbox_live_context_settings_c_members)


## Related topics

- [XblContextSettingsGetWebsocketTimeoutWindow](/pt-BR/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgetwebsockettimeoutwindow.md)
- [XblContextSettingsSetHttpTimeoutWindow](/pt-BR/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssethttptimeoutwindow.md)
- [XblContextSettingsGetHttpTimeoutWindow](/pt-BR/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgethttptimeoutwindow.md)
- [XblContextSettingsSetLongHttpTimeout](/pt-BR/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssetlonghttptimeout.md)
- [XblContextSettingsSetHttpRetryDelay](/pt-BR/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssethttpretrydelay.md)
