I found that the function inside the hubr method of the signalr client does not always work when it is enclosed in the jquery.ready () method. For example, this does not always work:
$(function(){
hubname.client.methodName = function () {
}
})
while the following works reliably:
hubname.client.methodName = function () {
}
Can someone explain this to me? This behavior pattern is not permanent and is found in both Chrome and Internet Explorer.
source
share