To ensure that the message reaches the client successfully, in the client method that receives this message, you must call the server method to confirm it.
For example, on the server you have
Clients.All.hello();
On the client, you should do something like this:
myHubConnection.client.hello = function () {
myHubConnection.server.notifyTheServer(messageId);
};
source
share