Skip to content

Commit

Permalink
docs: add debugging workerclient section
Browse files Browse the repository at this point in the history
  • Loading branch information
pbohlman authored and matlin committed Jun 14, 2024
1 parent 353976a commit b73c783
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/docs/src/pages/client/web-worker-client.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ const client = new WorkerClient({
token: import.meta.env.VITE_TRIPLIT_TOKEN,
});
```

## Debugging a `WorkerClient`

Because the `WorkerClient` runs in a Shared Worker, you can't directly access the client in the browser's console. Instead, navigate to `chrome://inspect/#workers` to view the logs for the Shared Worker.

0 comments on commit b73c783

Please sign in to comment.