---
description: Connecting to websockets for chat2
---

# connect

```python
async with client.connect('TOKEN') as chat2:
    # Your code
```

### token <mark style="color:green;">\[str]</mark> <mark style="color:purple;">(</mark>_<mark style="color:purple;">optional)</mark>_

You must specify this parameter if you did not specify a token at the beginning, or just want to use another token
