as you already know, extensions may not create direct connections:
Google Chrome Socket Extensions API
Possible Solution
maybe your QT application can serve as a website and you can communicate with it from Javascript:
http://www.html5rocks.com/en/tutorials/websockets/basics/
if you can’t serve websites from a QT application, another approach could be to create a “bridge” a little script that can serve as a website for your JavaScript and send messages from a QT application
you will find many examples on websites, an easy way to break into this is to create a small server using node.js to play with it. stackabuse.com/node-js-websocket-examples-with -socket th /
about! and search for the same website origin policy as
An example of an extension using websockets (which will be useful for debugging): chrome.google.com/webstore/detail/simple-websocket-client/pfdhoblngboilpfeibdedpjgfnlcodoo?hl=en
hope this helps
vmp999
source share