소스 검색

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,
     };