mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-16 16:14:43 -04:00
don't require referer to find note id in socket.io connections (fixes #623)
Signed-off-by: Stefan Bühler <buehler@cert.uni-stuttgart.de>
This commit is contained in:
parent
2024262200
commit
c4f8fb78ee
2 changed files with 17 additions and 6 deletions
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue