Reputation: 12426
We have a web application running in Chrome browser. We need it to connect it via TCP/IP to a network connected device, which would be normally impossible. Our only chance is implementing a Chrome Extension which would be able to create such requests – would this be even possible?
I studied this:
https://developer.chrome.com/extensions/devguide
But I couldn't find any information about accessing hardware from Chrome Extensions. Is there a way to do it?
Upvotes: 2
Views: 2085
Reputation: 1765
If your server acceps TCP socket connections you can use a web app communication over WebSockets, there is support for it in all major browsers today.
You need to be aware that WebSockets is not a raw TCP socket connection, and uses it's own protocoll on top of raw sockets, but it might be your best bet in connecting to your server without any browser plugins.
Upvotes: 1