Skip to content
This repository has been archived by the owner on Aug 19, 2021. It is now read-only.

node.js module please? #46

Open
kamathln opened this issue Aug 19, 2013 · 0 comments
Open

node.js module please? #46

kamathln opened this issue Aug 19, 2013 · 0 comments

Comments

@kamathln
Copy link

nodejs module where we can connect and then start using the remote objects directly as if local?

var moz = require('mozrepl');
var conn1 = moz.connect('127.0.0.1' , '4747');
var conn2 = moz.connect('127.0.0.1' , '4748');

var gbrwoser1; var gbrowser2;

if (conn.connected=true){
gbrowser1=conn1.otherEnd.content;
}

if (conn2.connected=true){
gbrowser2=conn2.otherEnd.content;
}

//start using "window" of the other end as if its local.
if (gBrowser1.location.href == gBrowser2..location.href) {
gBrowser1.alert('hey! the other browser has the same page open .');
gBrowser2.alert('hey! the other browser has the same page open .');
}

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant