node-phantom icon indicating copy to clipboard operation
node-phantom copied to clipboard

first time execute ph.createPage , socket.io seems not prepared

Open zhouseahe opened this issue 11 years ago • 0 comments

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. 

zhouseahe avatar Jul 16 '14 05:07 zhouseahe