SignalrHub dot net core 3 + Js + helper js
9.7K
Signalr Hub , your connection will be in signalRHub object Import two files to your project
script src="js/signalr/dist/browser/signalr.js
script src="js/signalrhub.js
assign a function for receiving messages to initial the hub
function reciveMessage(msg){ alert(msg); } signalRHub.init(reciveMessage);
The function return connection and you can see your connection id
for send just call signalRHub.sendAll("message");
the other options are here
sendAll(message) sendOthers:(message) sendOne(message, connectionId) sendGroup(message, groupId) sendOtherInGroup(message, groupId) joinGroup(groupName)
Content type
Image
Digest
Size
184.8 MB
Last updated
over 6 years ago
docker pull farham/signalrhubcore3