Shun Miyazawa 1 год назад
Родитель
Сommit
f401be9108
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      apps/app/src/server/service/yjs-connection-manager.ts

+ 2 - 2
apps/app/src/server/service/yjs-connection-manager.ts

@@ -1,4 +1,4 @@
-import type { Server, Socket } from 'socket.io';
+import type { Server } from 'socket.io';
 import { MongodbPersistence } from 'y-mongodb-provider';
 import { MongodbPersistence } from 'y-mongodb-provider';
 import { YSocketIO } from 'y-socket.io/dist/server';
 import { YSocketIO } from 'y-socket.io/dist/server';
 import * as Y from 'yjs';
 import * as Y from 'yjs';
@@ -39,7 +39,7 @@ class YjsConnectionManager {
     return this.instance;
     return this.instance;
   }
   }
 
 
-  public async handleYDocSync(pageId: string, initialValue: string, socket: Socket): Promise<void> {
+  public async handleYDocSync(pageId: string, initialValue: string): Promise<void> {
     const currentYdoc = this.getCurrentYdoc(pageId);
     const currentYdoc = this.getCurrentYdoc(pageId);
     if (currentYdoc == null) {
     if (currentYdoc == null) {
       return;
       return;