asp.net - SignalR: Sending message back only to AJAX caller from the code behind page (outside of Hub/PersistentConnection) -


i'm struggling bit. i'm trying achieve send message ajax caller (aspx page) server (aspx page's code behind) update progress of time consuming task being done @ server.

i'm trying following code code behind of aspx page, doesn't seem work!

_context = globalhost.connectionmanager.getconnectioncontext<messengerendpoint>(); _context.connection.send(((connection)_context.connection).identity, "hey"); 

any suggestions appreciated.

edit: takers? @dfowler/@n.taylormullen?

regards.

first of all, can try (only try):

context.connection.broadcast ( "hey"); 

if work (and think work(, problem identity, nedd open connection , save connection id on server or in client later use.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -