c# - Incorporating Signal R into an already existing web application -


from understanding, beauty of signal r takes care of "handshake" between client , server determine best form of communciation between them (websockets, long polling, etc). understand default @ /signalr route. read before handshake accomplished http request upgrade/connection header specifying upgrade new connection.

in current application support handling many http requests in restful manner. if wanted expose of data in real time rather in request response format, best way determine if should open connection using signal r? checking headers still suffice? feel bit redundant since signal r abstracts away.

instead of this, solution client invoke hub method kick off streaming connects proper endpoint?

tldr: need way open signal r connection http request, don't know best way go whether requesting resource custom http headers or navigating url resource , having client invoke hub method.

a typical example of using signalr is:

  1. an html file using javascript connect signalr server when page loaded. call signalr client.

  2. a signalr server written in c#. can winform or console or service.

  3. the signalr server can call dll, or webservices or webapi located in same server, or in different server.

then, client can call function defined in signalr server. server can call function defined in client particular client or groups of clients.

also, client x can call client y functions well.

i suggest create index.html inside cordova project, client can use app using pc desktop browser, or mobile phone browser, or run android or iphone native app, using 1 set of client codes.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -