You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| url | true | String || The URL to use to communicate with the Cat. |
36
-
| api | true | String || The API key for the Cat. |
37
-
| dark | false | Boolean |`false`|`true` if the chat have to use the dark mode. `false` if not. |
38
-
| primary | false | String |`#F3977B`| The color to use to stylize the chat. |
39
-
| secure | false | Boolean |`false`|`true` if the chat have to use the dark mode. `false` if not. |
40
-
| timeout | false | Number |`10000`| The delay (in milliseconds) to wait before trying again to connect. |
41
-
| callback | false | String |`''`| The name of the function (declared globally) to call before passing the message to the cat. |
42
-
| files | false | String[]|`["text/plain", "text/markdown", "application/pdf"]`| The accepted content types when uploading a file (must be supported by the cat). |
43
-
| defaults | false | String[]|`Check stores/useMessages.ts line 14`| The default messages to show before starting the conversation with the cat. |
44
-
| features | false | String[]|`['record', 'web', 'file', 'reset']`| The features that the user can use. |
33
+
| Attribute | Required | Type | Default value | Description |
| url | true | String || The URL to use to communicate with the CCat. |
36
+
| auth | true | String || The authentication key to use for the CCat's endpoints. |
37
+
| port | false | String || The port to use in combination with the `url` to communicate with the CCat. |
38
+
| dark | false | Boolean |`false`|`true` if the chat have to use the dark mode. `false` if not. |
39
+
| primary | false | String |`#F3977B`| The color to use to stylize the chat. |
40
+
| secure | false | Boolean |`false`|`true` if the widget should use the secure protocol (https/wss). `false` if not. |
41
+
| timeout | false | Number |`10000`| The amount of time (in milliseconds) to wait before requests generate an error. |
42
+
| showWhy | false | Boolean |`true`|`true` if the chat have to show the WHY button in the CCat response. `false` if not. |
43
+
| wsPath | false | String |`ws`| The path to use when connecting to the WebSocket. |
44
+
| wsDelay | false | Number |`2500`| The delay (in milliseconds) to wait before trying again to connect to the WebSocket. |
45
+
| wsRetries | false | Number |`3`| The amount of retries (in milliseconds) to do when trying to reconnect to the WebSocket. |
46
+
| callback | false | String |`''`| The name of the function (declared globally) to call before passing the message to the cat. |
47
+
| files | false | String[]|`["text/plain", "text/markdown", "application/pdf"]`| The accepted content types when uploading a file (must be supported by the cat). |
48
+
| defaults | false | String[]|`Check stores/useMessages.ts line 14`| The default messages to show before starting the conversation with the cat. |
49
+
| features | false | String[]|`['record', 'web', 'file', 'reset', 'memory']`| The features that the user can use. |
0 commit comments