feat: custom user Agent in Client (#271)

* Added Option to Custom User Agent in Client

* Update Typescript Index

* Delete Variable UserAgent From Client

* Update Variable UserAgent to userAgent
This commit is contained in:
YY 2020-07-03 13:05:23 +07:00 • committed by GitHub
commit a10b458cd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

2
index.d.ts vendored
View file

@ -215,6 +215,8 @@ declare namespace WAWebJS {
takeoverOnConflict?: boolean,
/** @default 0 */
takeoverTimeoutMs?: number,
/** @default 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36' */
userAgent?: string
}
/** Represents a Whatsapp client session */