Skip to content

Commit de7fb8a

Browse files
authored
Update db_connection_impl.ts (#194)
fix for #2896
1 parent 179b666 commit de7fb8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sdks/typescript/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)