```rust title="Native Connection"
{{#include docs/examples/rust/nativeexample/examples/connect.rs}}
```

:::note
For Rust client library, the connection depends on the feature being used. If "ws" feature is enabled, then only the implementation for "websocket" is compiled and packaged.

:::
