node-phantom
node-phantom copied to clipboard
first time execute ph.createPage , socket.io seems not prepared
first time I run
ph.createPage(function(err,page){
// no code run here
});
it didn't work . I need to execute like this
setTimeout(function(){
ph.createPage(function(err,page){
});
},500);
I think
phantom.create(function(error,ph){ });
callback executed but socket.io not prepared.