[問題] 網頁前端call signalr

作者: valda (valda)   2014-10-06 18:30:51
最近在study 微軟的signalr
照著sample打沒問題
當我用其他台電腦
用jquery call signalr api
卻一直fail
前端code 如下
var connection = $.hubConnection("http://localhost:17092/");
connection.start({ jsonp: true })
.done(function () {
console.log('connected');
alert('connected');
hub.say("success?");
})
.fail(function (a) {
console.log('not connected'+a);
alert('not connected'+a);
alert(connection);
});
error message
http://ppt.cc/8zGL
請問還有哪邊沒注意到的嗎?
作者: CrazyAngel (無口系天然呆)   2014-10-11 02:12:00

Links booklink

Contact Us: admin [ a t ] ucptt.com