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

Connecting to 2 usb devices in the same web app #242

Open
grigam5 opened this issue Oct 18, 2023 · 1 comment
Open

Connecting to 2 usb devices in the same web app #242

grigam5 opened this issue Oct 18, 2023 · 1 comment

Comments

@grigam5
Copy link

grigam5 commented Oct 18, 2023

Hi!

Attempting to establish connections with 2 USB devices from the same web application,
I manage to link to only one device, while encountering an error for the second:
'A Javascript error occurred in the main process
Uncaught Exception:
TypeError: One-time callback was called more then once as Session: at Session -path to index.js file'.
I am curious whether the WebUSB standard facilitates connections to multiple USB devices within a single web application.

I have tried to use Electron to achieve this. My web app is loaded into Electron Chromium window.

@reillyeon
Copy link
Collaborator

I don't recognize this error as one generated by the Chromium WebUSB implementation. WebUSB supports connecting to as many devices as the user has granted permission to access. This looks like it might be an application error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants