[问题] 网页前端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