From c2d54c3e97fcc261a653c0a52db8f01de85d11fb Mon Sep 17 00:00:00 2001 From: J Gabriel Gouveia Date: Fri, 15 Jun 2018 16:31:07 -0300 Subject: [PATCH] changed close function on Client and other alterations --- types/mosca/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/mosca/index.d.ts b/types/mosca/index.d.ts index 5354b57d1f..77fd94e87b 100644 --- a/types/mosca/index.d.ts +++ b/types/mosca/index.d.ts @@ -6,7 +6,6 @@ export class Server { opts: any; modernOpts: any; - dedupId: any; clients: any; closed: boolean; @@ -32,14 +31,14 @@ export class Server { updateOfflinePacket(client: Client, originMessageId: number, packet: Packet, callback: (obj: any, packet: Packet) => void): void; persistClient(client: Client, callback: () => void): void; - close(callback: () => void): void; + close(callback?: () => void): void; attachHttpServer(server: any, path?: any): void; } export class Client { - id: any; + id: string; connection: any; - server: any; + server: Server; logger: any; subscriptions: any; nextId: number; @@ -49,6 +48,7 @@ export class Client { constructor(connection: any, server: Server); close(callback: () => void, reason: string): void; + close(reason: string): void; } export class Stats {