The state of the WA Web session. You can listen to session state changes using [[onStateChanged]]. Just to be clear, some of these states aren't understood completely.
Another WA web session has been opened for this account somewhere else.
The session is successfully connected and ready to send and receive messages.
WA web updates every fortnight (or so). This state would be emitted then.
This is fired when the connection between web and the host account primary device is disconnected. This is fired frequently to save battery.
This probably shows up when reloading an already authenticated session.
This probably shows up immediately after the QR code is scanned
This state probably represented a block on the proxy address your app is using.
This usually shows up when the session has been blocked by WA due to some issue with the browser/user agent. This is a different version of a Terms of Service Block from what we know. It may also show up when the host account is banned.
This is fired when the QR code is scanned
The trigger for this state is as of yet unknown
This usually shows up when the session has been blocked by WA due to some issue with the browser/user agent. It literally stands for Terms of Service Block. It may also show up when the host account is banned.
The same (probably replacement) for CONFLICT
UNPAIRED the page is waiting for a QR Code scan. If your state becomes
UNPAIRED then the session is most likely signed out by the host account.
This state is fired when the QR code has not been scanned for a long time (about 1 minute). On the page it will show "Click to reload QR code"