Hub.start - wait for finish
问题 I'm using SignalR to transferring commands from client to server without refreshing the page. When the client enter some of my web pages, I'm starting a new hub connection. Like this: var hub = $.connection.siteControllerHub; $.connection.hub.start(); This "start()" function takes some time (+-5 seconds). mean while, the page is already finished loading and the user start using my UI. SingalR cannot serve the user, until it's finish loading the connection. I'm know that I'm can use the async