This repository has been archived by the owner on Apr 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# JS Client APIs | ||
|
||
Once imported, the recorder will be available at `window.recorder`. | ||
|
||
## Methods | ||
|
||
### `window.recorder.setUser` | ||
|
||
- Input: `(user: { id: string, name: string: email: string })` | ||
- Output: window.recorder | ||
|
||
Sets user information. If server is running on anonymised mode, this data will not be recorded | ||
|
||
### `window.recorder.setMeta` | ||
|
||
- Input: `(meta: { [key: string]: string })` | ||
- Output: window.recorder | ||
|
||
Sets session meta data. Useful to identify the session somehow. | ||
|
||
### `window.recorder.setClientId` | ||
|
||
- Input: `(clientId: string)` | ||
- Output: window.recorder | ||
|
||
Sets which clientId (example: site1 and site2). Can be used in the future as a filter in the explorer. | ||
|
||
### `window.recorder.sync` | ||
|
||
Forces the recorder to send data to the server | ||
|
||
### `window.recorder.close` | ||
|
||
Kills the recorder session |