type for ws server options

This commit is contained in:
Sergii KLiuchnyk 2022-11-07 11:14:27 +02:00
parent abaf9ab3b4
commit e5c4a1b8f6

View File

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