Skip to content

Commit 247e329

Browse files
committed
Always append URL and QS to base websocket
1 parent b5be02e commit 247e329

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/js/packages/@reactpy/client/src/websocket.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ export function createReconnectingWebSocket(
1515
if (closed) {
1616
return;
1717
}
18+
props.url.searchParams.set("path", window.location.pathname);
19+
props.url.searchParams.set("qs", window.location.search);
1820
socket.current = new WebSocket(props.url);
1921
socket.current.onopen = () => {
2022
everConnected = true;

0 commit comments

Comments
 (0)