Преглед на файлове

type for ws server options

Sergii KLiuchnyk преди 2 години
родител
ревизия
e5c4a1b8f6
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/services/webSocketServer/index.ts

+ 1 - 1
src/services/webSocketServer/index.ts

@@ -40,7 +40,7 @@ export class WebSocketServer extends EventEmitter implements IWebSocketServer {
     const path = this.config.path;
     this.path = `${path}${path.endsWith('/') ? "" : "/"}${WS_PATH}`;
 
-    const options = {
+    const options: WebSocketLib.ServerOptions = {
       path: this.path,
       server,
     };