Skip to content

Commit 6bb9d7a

Browse files
authored
Update db_connection_impl.ts (#194)
fix for clockworklabs/SpacetimeDB#2896
1 parent b9c254f commit 6bb9d7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/sdk/src/db_connection_impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export class DbConnectionImpl<
196196

197197
let url = new URL(uri);
198198
if (!/^wss?:/.test(uri.protocol)) {
199-
url.protocol = 'ws:';
199+
url.protocol = url.protocol === 'https:' ? 'wss:' : 'ws:';
200200
}
201201

202202
this.identity = identity;

0 commit comments

Comments
 (0)