I'm using angular11 with jquery, I added a script as below:
let node = document.createElement('script');
let url=this.GlobalServ.BasicUrl+'signalr/hubs';
node.src = url;
node.id = 'signalr'
document.getElementsByTagName('head')[0].appendChild(node);
When I'm trying to use the content of Signalr/hubs file (In my case: "cloudsferWebHub") It doesn't work:
$.connection.hub.qs = { 'migration': this.contentData.Id };
var agents = $.connection.cloudsferWebHub; //cloudsferWebHub is undefined