mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #13491 from overleaf/jpa-real-time-query-access
[real-time] gracefully access query parameters GitOrigin-RevId: b29237a6fb20d51bbe5db7ebb429d460b1da29a6
This commit is contained in:
parent
57e4557d23
commit
7d836493a0
1 changed files with 1 additions and 2 deletions
|
@ -119,8 +119,6 @@ module.exports = Router = {
|
|||
)
|
||||
|
||||
session.on('connection', function (error, client, session) {
|
||||
const joinProjectAutomatically = !!client.handshake.query.projectId
|
||||
|
||||
// init client context, we may access it in Router._handleError before
|
||||
// setting any values
|
||||
client.ol_context = {}
|
||||
|
@ -171,6 +169,7 @@ module.exports = Router = {
|
|||
}
|
||||
return
|
||||
}
|
||||
const joinProjectAutomatically = !!client.handshake?.query?.projectId
|
||||
|
||||
// send positive confirmation that the client has a valid connection
|
||||
client.publicId = 'P.' + base64id.generateId()
|
||||
|
|
Loading…
Reference in a new issue