15 lines
681 B
Plaintext
15 lines
681 B
Plaintext
```text
|
|
[+<protocol>]://[[<username>:<password>@]<host>:<port>][/<database>][?<p1>=<v1>[&<p2>=<v2>]]
|
|
|------------|---|-----------|-----------|------|------|------------|-----------------------|
|
|
| protocol | | username | password | host | port | database | params |
|
|
- **protocol**: Display using websocket protocol to establish connection.
|
|
- **username/password**: Database's username and password.
|
|
- **host/port**: Declare host and port. eg. `localhost:6041`
|
|
- **database**: Optional, use to specify database name.
|
|
- **params**: Other parameters. Like cloud Token.
|
|
```
|
|
|
|
```python
|
|
{{#include docs/examples/python/connect_websocket_examples.py:connect}}
|
|
```
|