none
SignalR suitability for long held connections RRS feed

  • Question

  • Hi

    I've been looking into SignalR for asynchronous server initiated calls to clients (.net clients). These clients would potentially establish a connection to a hub and hold on to those connections for weeks.

    Is SignalR suited for such usage? Or is there another better technology for accomplishing this?

    Thanks!

    Monday, November 25, 2013 8:53 PM

All replies

  • I think yes. You can use Server Sent Events (SSE - Server Sent Events), but SSE are not supported by IE. Further, SignalR encapsulates SSE and will use it of applicable. You can enforce SignalR to use it always.

    As long as your client is a client and no server that can be called e.g. via public IP, you need some other techniques - e.g. long polling, server sent events and so on. And that is, what SignalR is doing for you! It abstracts all this techniques and selects the best for the moment (based on used web browser, server technology etc.).

    Hope that helps! If you have any questions, please do not hesitate to contact me! 

     

    ---------------------------------- Robin Sedlaczek @ Microsoft Forums

    Tuesday, August 5, 2014 10:40 AM