Skip to content

Commit

Permalink
Missing query argument in nspMiddleware (#16)
Browse files Browse the repository at this point in the history
Without this argument it's not possible to use query object with token and other items.
  • Loading branch information
Alexey Topolyanskiy authored Jun 16, 2020
1 parent fa0465a commit e1494a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/SocketIOConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e1494a7

Please sign in to comment.