Skip to content

Commit e03bbdd

Browse files
Reimplemented/rebased the changes Noa submitted (#134)
Co-authored-by: Tyler Cloutier <[email protected]>
1 parent 886cda4 commit e03bbdd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/sdk/src/db_connection_impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export class DbConnectionImpl<
187187
}: DbConnectionConfig) {
188188
stdbLogger('info', 'Connecting to SpacetimeDB WS...');
189189

190-
let url = new URL(`database/subscribe/${nameOrAddress}`, uri);
190+
let url = new URL(`database/${nameOrAddress}/subscribe`, uri);
191191

192192
if (!/^wss?:/.test(uri.protocol)) {
193193
url.protocol = 'ws:';

packages/sdk/src/websocket_decompress_adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class WebsocketDecompressAdapter {
9191
WS = WebSocket;
9292
}
9393

94-
const tokenUrl = new URL('/identity/websocket_token', url);
94+
const tokenUrl = new URL('/identity/websocket-token', url);
9595
tokenUrl.protocol = url.protocol === 'wss:' ? 'https:' : 'http:';
9696

9797
const response = await fetch(tokenUrl, { method: 'POST', headers });

0 commit comments

Comments
 (0)