Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

chrome extension command-line communication

Is there anyway for me to communicate with my chrome extension from a command-line \ some other process ? I need my extension if it could get commands from scripts\command-line that would invoke functions on my extension. I'm looking for something like sockets but since extensions are built in javascript this doesn't seem possible (and the whole socket-like message passing in chrome only allows you to communicate between your own pages or other extensions , not other processes).

like image 769
Joel Blum Avatar asked Nov 12 '22 22:11

Joel Blum


1 Answers

HTML5 exposes a JavaScript socket interface called web sockets which will allow you to communicate from any process with your extension. Chrome supports web sockets.

like image 187
Samuel Avatar answered Nov 15 '22 12:11

Samuel