JS. Handling incoming calls SignalR

If you need to make your own handlers for SignalR then implement similar functions by defining them in the following global function window.asSignalRCallback(proxy)

The appearance of these functions will be something like this (copy - https://pastebin.com/yMi9Y6RG):

This function is called from the server when a message is sent to the user.

What the server code looks like (copy - https://pastebin.com/R3rUrCJE):