From c4f8fb78eeef1c9536caae4c8cced4f0f50f1932 Mon Sep 17 00:00:00 2001 From: Stefan Bühler Date: Wed, 13 Sep 2017 14:48:39 +0200 Subject: don't require referer to find note id in socket.io connections (fixes #623) Signed-off-by: Stefan Bühler --- public/js/index.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'public') diff --git a/public/js/index.js b/public/js/index.js index 5ff716fd..096f7fde 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1762,6 +1762,9 @@ window.havePermission = havePermission var io = require('socket.io-client') var socket = io.connect({ path: urlpath ? '/' + urlpath + '/socket.io/' : '', + query: { + noteId: noteid + }, timeout: 5000, // 5 secs to timeout, reconnectionAttempts: 20 // retry 20 times on connect failed }) -- cgit v1.2.3