diff --git a/server/services/collaboration.js b/server/services/collaboration.js index bd3773cf..5619864e 100644 --- a/server/services/collaboration.js +++ b/server/services/collaboration.js @@ -26,7 +26,7 @@ export default function init(app: Koa, server: http.Server) { if (req.url.indexOf(path) > -1) { const documentName = url.parse(req.url).pathname?.split("/").pop(); - wss.handleUpgrade(req, socket, Buffer.alloc(0), (client) => { + wss.handleUpgrade(req, socket, head, (client) => { hocuspocus.handleConnection(client, req, documentName); }); }