diff --git a/ftp-srv.d.ts b/ftp-srv.d.ts index 2bc5556..60b9c2e 100644 --- a/ftp-srv.d.ts +++ b/ftp-srv.d.ts @@ -166,9 +166,14 @@ export class FtpServer extends EventEmitter { ) => void ): this; + on( + event: "connect", + listener: (data: { connection: FtpConnection; id: string; newConnectionCount: number }) => void + ): this; + on( event: "disconnect", - listener: (data: { connection: FtpConnection; id: string }) => void + listener: (data: { connection: FtpConnection; id: string; newConnectionCount: number }) => void ): this; on(