Skip to content

TypeScript SDK - withUri should be able to take either HTTPS or WSS for a secure connection #3021

@jdetter

Description

@jdetter

If you supply .withUri("https://maincloud.spacetimedb.com") instead of .withUri("wss://maincloud.spacetimedb.com") then you will get a ws:// connection instead of a wss:// connection. If the user supplies a https:// connection string we should automatically convert that to wss://. Both the C# and rust SDKs do this.

Discord thread: https://discord.com/channels/1037340874172014652/1362951793595650148/1362951793595650148

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions