<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@soulmachines/smwebsdk](./smwebsdk.md) &gt; [ConnectionState](./smwebsdk.connectionstate.md) &gt; [setConnectionState](./smwebsdk.connectionstate.setconnectionstate.md)

## ConnectionState.setConnectionState() method

**Signature:**

```typescript
setConnectionState(connectionStateType: ConnectionStateTypes): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  connectionStateType | [ConnectionStateTypes](./smwebsdk.connectionstatetypes.md) |  |

**Returns:**

void

