Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TC-3830 / Added uapiErrorHandler option for Terminal service #656

Merged
merged 2 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/Terminal.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,21 @@ for several PCC emulations.
See [advanced emulation example](../examples/Terminal/emulation.js) to get an example
on how to use emulation.

# uAPI error handling

In case you want to handle some specific errors from uAPI, you can provde `uapiErrorHandler` function
in options.

Footprint of the functions should be as follows:
```javascript
async (
executeCommandWithRetry,
{ command, error: err }
) => {
// your code goes here
}
```

# Session closing
Be aware to close the session after all your manipulations with the terminal.

Expand Down
Loading