0
我使用SignalR 2.0.0 Win2012 iis8 在以前的版本中使用最新的2.0.0版本後,錯誤沒有發生。我收到錯誤信息:「無法ping服務器」。但我仍然連接。 爲什麼我收到上述錯誤? 我需要做什麼來解決問題? 感謝SignalR服務器ping錯誤
我使用SignalR 2.0.0 Win2012 iis8 在以前的版本中使用最新的2.0.0版本後,錯誤沒有發生。我收到錯誤信息:「無法ping服務器」。但我仍然連接。 爲什麼我收到上述錯誤? 我需要做什麼來解決問題? 感謝SignalR服務器ping錯誤
我的客戶的部分代碼:
function connect(host)
{
var hubConnection = $.hubConnection.('');
hubConnection.url = host;
hubConnection.start()
.done(open)
.fail(error);
}
function open()
{
console.log('success')
}
function disconnect()
{
var self = this,
hubConnection = $.hubConnection("");
console.log('disconnect ')
hubConnection.stop(true, true);
}
function error(error)
{
console.log('error')
}
如果您需要回答更多的細節不要猶豫,問。
您能否向我們提供有關您設置的更多信息?比如你的中心,jscript等 – JonE