X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fstore.js;h=1cfb7c5a2ba3934efae21113a47c2a98ae49a07a;hp=2728aaf0647ffcf8a46646151035485277c61c44;hb=80ee5d5a70f17f78900a8a3ae2d803ed1f2f14c9;hpb=c6788ecf8a595409c7e31febf3d13c97bde2a725 diff --git a/client/src/store.js b/client/src/store.js index 2728aaf0..1cfb7c5a 100644 --- a/client/src/store.js +++ b/client/src/store.js @@ -49,7 +49,8 @@ export const store = }; this.socketCloseListener = () => { // Next line may fail at first, but should retry and eventually success (TODO?) - this.state.conn = new WebSocket(params.socketUrl + "/?sid=" + mysid); + this.state.conn = new WebSocket(params.socketUrl + "/?sid=" + mysid + + "&page=" + encodeURIComponent(page)); }; this.state.conn.onclose = this.socketCloseListener; const supportedLangs = ["en","es","fr"];