# GatewayConfig

**Kind**: interface | **Module**: [io.Connect Desktop](https://docs.interop.io/desktop/reference/javascript/io.connect%20desktop/index.md)

**Source**: https://docs.interop.io/desktop/reference/javascript/io.connect desktop/gatewayconfig/index.html

Configurations for the io.Connect Gateway connection.

## Properties

- **`gwTokenProvider`** (`GwTokenProvider`, optional)
  A way to pass custom token provider for Gateway v.3 tokens.
- **`inproc`** (`InprocGWSettings`, optional)
  Connect with GW in memory
- **`protocolVersion`** (`number`, optional)
  Legacy (Version of the Gateway that you are connected to)
- **`reconnectAttempts`** (`number`, optional) default: `10`
  Number of reconnect attempts.
- **`reconnectInterval`** (`number`, optional) default: `500`
  Reconnect interval in milliseconds.
- **`sharedWorker`** (`string`, optional)
- **`webPlatform`** (`WebPlatformConnection`, optional)
  An object containing the configuration settings when core is operating in a web platform environment
- **`ws`** (`string`, optional)
  URL for the WebSocket connections to the Gateway.

## Related types

- [InprocGWSettings](https://docs.interop.io/desktop/reference/javascript/io.connect%20desktop/inprocgwsettings/index.md)
- [WebPlatformConnection](https://docs.interop.io/desktop/reference/javascript/io.connect%20desktop/webplatformconnection/index.md)
