开发者

streamhub: does streamhub in firefox 4 uses palin ajax for push events?

I'm using Stream hub as my push server. when i used Firefox 4.0.1 as my browser, i saw that stream hub is making periodical Ajax request. But in safari i noticed an error in console regarding ws: (web socket), so i came to a conclusion that safari is making request using ws:// url's while Firefox is making plain Ajax calls.

this is my client code

function start() {  
   hub = new StreamHub();  
   hub.connect("http://localhost:7878/streamhub/");  
   hub.subscribe("HelloWorld", topicUpdated); 
   console.log("brws. subscribed to helloworld"); 
} 

I have two questions.

1)Is m开发者_StackOverflow社区y conclusion correct? 2)how do i monitor HTTP request and response in safari (like firebug net panel).

Thanks

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜