Shun Miyazawa 2 tahun lalu
induk
melakukan
a70b905fd3

+ 1 - 1
apps/app/src/server/crowi/index.js

@@ -483,7 +483,7 @@ Crowi.prototype.start = async function() {
 
   // Initialization YjsConnectionManager
   instantiateYjsConnectionManager(this.socketIoService.io);
-  this.socketIoService.setupYjsConnectionManager();
+  this.socketIoService.setupYjsConnection();
 
   // listen
   const serverListening = httpServer.listen(this.port, () => {

+ 0 - 4
apps/app/src/server/service/socket-io.js

@@ -53,10 +53,6 @@ class SocketIoService {
     await this.setupDefaultSocketJoinRoomsEventHandler();
   }
 
-  async setupYjsConnectionManager() {
-    await this.setupYjsConnection();
-  }
-
   getDefaultSocket() {
     if (this.io == null) {
       throw new Error('Http server has not attached yet.');