c# - How to use SignalR with non-UI-based clients? -


in previous solution, recall setting code-behind-type hub connections unit testing. believe used code previous signalr hubs c# client github wiki.

in signalr hubs api guide there example of using console-based client:

stocktickerhubproxyproxy.on("notify", () => console.writeline("notified!")); 

in upcoming application there notifications pushed several clients. of these clients ui-based (js), , others, back-end code perform task.

i familiar js-based client connectivity. question centers around attaching code-behind-type clients, , how methods "notified".

i understand ui-based client, mechanism push update client through dynamic invocations client-side "methods". since it's been few months since i've touched signalr, best way accomplish there no ui involved?

to verify understanding documentation correctly , when valid transport method used, c#-based (non ui/js) client notified (push) through signalr framework - no client polling required?

the essential mechanism same js , c# clients. solution mentioned in question. 'on' method subscribe client "notify event" triggered server. can refer documentation better understanding: http://www.asp.net/signalr


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -