feat: logout client

close #255
This commit is contained in:
Pedro Lopez
2020-06-17 23:58:02 -04:00
parent b0baeaa8da
commit 300b367fa0
2 changed files with 12 additions and 0 deletions

3
index.d.ts vendored
View File

@@ -28,6 +28,9 @@ declare namespace WAWebJS {
/** Closes the client */
destroy(): Promise<void>
/** Logs out the client, closing the current session */
logout(): Promise<void>
/** Get chat instance by ID */
getChatById(chatId: string): Promise<Chat>