Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit 9831f93

Browse files
authored
Deploying: Maincloud: add section for connecting via SDKs (#311)
* [bfops/maincloud-sdks]: wIP * [bfops/maincloud-sdks]: WIP * [bfops/maincloud-sdks]: do thing * [bfops/maincloud-sdks]: review --------- Co-authored-by: Zeke Foppa <[email protected]>
1 parent 13587cd commit 9831f93

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docs/deploying/maincloud.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,24 @@ spacetime login
2828
---
2929

3030
With SpacetimeDB Maincloud, you benefit from automatic scaling, robust security, and the convenience of not having to manage the hosting environment.
31+
32+
# Connect from Client SDKs
33+
To connect to your deployed module in your client code, use the host url of `https://maincloud.spacetimedb.com`:
34+
35+
## Rust
36+
```rust
37+
DbConnection::builder()
38+
.with_uri("https://maincloud.spacetimedb.com")
39+
```
40+
41+
## C#
42+
```csharp
43+
DbConnection.Builder()
44+
.WithUri("https://maincloud.spacetimedb.com")
45+
```
46+
47+
## TypeScript
48+
```ts
49+
DbConnection.builder()
50+
.withUri('https://maincloud.spacetimedb.com')
51+
```

0 commit comments

Comments
 (0)