Missing query argument in nspMiddleware (#16)

Without this argument it's not possible to use query object with token and other items.
pull/20/head
Alexey Topolyanskiy 4 years ago committed by GitHub
parent fa0465afbb
commit e1494a70db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -67,7 +67,7 @@ export default class SocketIOCollaboration {
if (!this.backend.getDocument(path)) {
const doc = onDocumentLoad
? await onDocumentLoad(path)
? await onDocumentLoad(path, query)
: this.options.defaultValue
if (!doc) return next(null, false)

Loading…
Cancel
Save