jquery - how to send message to specific user using SignalR -
i upgraded signalr v 0.53 1.0.1 , found oput iconnectionidgenerator interface weere using set clientids on connect not longer exsist (which made me sad).
now question is, how around problem?
how send message specific user (or set of users) without being able set each specific users connection id??
i'm not familiar previous versions of signalr the version v1.0.1 may send messages (call javascript methods) on client within hub using clients property.
for example:
clients.caller.addmessage(data); - sends message caller client. clients.all.addmessage(data); - sends message clients.
etc. (check hubconnectioncontext class).
if need maintain groups of clients, use groups property.
you can maintain custom groups using context.connectionid.
for detailed information can have @ signalr wiki page.
hope helps further.
Comments
Post a Comment