- const socketCloseListener = () => {
- this.state.conn = new WebSocket(params.socketUrl + "/?sid=" + mysid);
+ this.socketCloseListener = () => {
+ // Next line may fail at first, but should retry and eventually success (TODO?)
+ this.state.conn = new WebSocket(params.socketUrl + "/?sid=" + mysid +
+ "&page=" + encodeURIComponent(page));