mirror of
https://github.com/docmost/docmost.git
synced 2026-05-20 08:34:04 +08:00
collaboration module cleanup x2
This commit is contained in:
@@ -7,8 +7,8 @@ export class CollabWsAdapter {
|
||||
this.wss = new WebSocketServer({ noServer: true });
|
||||
}
|
||||
|
||||
handleUpgrade(path: string, httpServer) {
|
||||
httpServer.on('upgrade', (request, socket, head) => {
|
||||
handleUpgrade(path: string, httpServer: any) {
|
||||
httpServer.on('upgrade', (request: any, socket: any, head: any) => {
|
||||
try {
|
||||
const baseUrl = 'ws://' + request.headers.host + '/';
|
||||
const pathname = new URL(request.url, baseUrl).pathname;
|
||||
|
||||
Reference in New Issue
Block a user