Automattic / happychat-client

Happychat customer client code
13 stars 5 forks source link

Add forceTicketForm option #331

Closed mattwondra closed 3 years ago

mattwondra commented 3 years ago

This is a new top-level API option. When forceTicketForm: true is present, we want to make sure the user always sees the fallback ticket form — even if they are chat-eligible, and even if they have an ongoing chat.

We do this by preventing a socket connection from even being made when the option is enabled.