문제

I have created a browser plugin based on Firebreath framework. Now I want to load the plugin into Node.js and make the javascript code communicate with the plugin. My draft idea is creating a Node.js C++ add-on to wrapper the plugin. Node.js loads the add-on. The add-on loads the plugin. The function call between the javascript code and the plugin code is via the add-on.

I want to consult the experts before moving ahead. Does anyone have the experience to make the node.js script communicate with firebreath plugin? Is my idea possible? Please share more details.

Thanks, Jeffrey

도움이 되었습니까?

해결책

It's certainly possible, but it may be more trouble than it's worth. What I'd probably do instead is try to abstract out the JSAPI stuff (ScriptingCore project) and make an adapter that wraps a JSAPI object with a node object. Actually loading the full plugin as-is would require a lot of work. It's doable, but it would be a bit of a pain.

... I wrote FireBreath, so I do know what I'm talking about =]

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top