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

Implement WebUSB for Agent-web #408

Open
mondalaci opened this issue Sep 6, 2017 · 5 comments
Open

Implement WebUSB for Agent-web #408

mondalaci opened this issue Sep 6, 2017 · 5 comments
Assignees

Comments

@mondalaci
Copy link
Member

WebUSB will be available starting from Chrome 61. It'll enable Agent-web to access the UHK directly from the browser. This is very comfortable because users won't necessarily have to install Agent for production (non-demo) purposes.

This will not obsolete Agent-electron because we plan to implement several advanced features in the future which rely on platform features that are not available in the browser.

The plan is to abstract USB handling and use hidapi on the desktop and WebUSB in the browser.

@mondalaci
Copy link
Member Author

We plan to rely on OS features for some advanced Agent features which could not be implemented in the web version. All things considered, the WebUSB version would be rather confusing from a user standpoint, so I'm closing this issue.

@rdpate
Copy link

rdpate commented Jan 21, 2023

I hope you reconsider this. For work computers, installing software often ranges from impossible to permission-required-huge-hassle.

I just got my UHK a month ago, and I love it so much that the only reason I'm hesitating on buying a second UHK for work is that I don't know if I want to bring it home to run Agent, even though I expect that to be infrequent.

@mondalaci
Copy link
Member Author

We'll look into how much work webUSB involves and may implement it, but it's not a priority.

@mondalaci mondalaci reopened this Jan 21, 2023
@benedekkupper
Copy link

There is also a WebHID API now, with support existing in Chrome, Edge and Opera. As HID can use different transport layers, using WebHID would be more future proof overall.

@mondalaci
Copy link
Member Author

@benedekkupper Thanks for the heads-up! I didn't know about WebHID, and based on what I read, it seems like a better option.

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

No branches or pull requests

4 participants