Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

WebUSB Support #2892

Answered by bpmct
mepunit asked this question in Ideas
Mar 16, 2021 · 1 comments · 3 replies
Discussion options

Hello Code-Server Team,

I need WebUSB Support inside the Code-Server environment. I want to access some USB devices and want to develop a VSCode Plugin to communicate with the device.

But, strangely, I am not able to access navigator.serial or navigator.usb within the DOM which is accessible otherwise.

Please help me on this.

Thank you,
Punit

You must be logged in to vote

@code-asher might be able to help with this. Any idea on the best way to access the DOM from within code-server?

Replies: 1 comment 3 replies

Comment options

@code-asher might be able to help with this. Any idea on the best way to access the DOM from within code-server?

You must be logged in to vote
3 replies
Comment options

@bpmct Thank you Ben. But, I just now checked I was facing this issue because I was using an Unsecured Docker Instance. When I used SSL, the problem vanished.

Comment options

Glad you got it sorted! Feel free to add updates about the WebUSB plugin. Would love to document this!

Comment options

It seems amazing, 80% of problems in development are just because of SSL certificates, lol 😂
code-server's discussions are flooded with problems that were due to HTTP.

Answer selected by jsjoeio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /