Does SignalR work with HTTPS?
I have a site on SSL and I want to use SignalR. Is it possible?
If so, do I need to write something different / add configuration?
If your SignalR application transmits sensitive information between the client and server, use SSL for the transport.
SignalR includes automatic connection management, it provides the facility to broadcast messages to all connected clients or to a specific client. The connection between the client and server is persistent while in HTTP it isn't persistent.
WebSockets is actually the underlying transport that SignalR uses, at least most of the time. SignalR has the ability to fall back to other ways of transporting messages, such as long-polling over HTTP. This is useful in situations where you don't have WebSockets support.
SignalR provides two built-in hub protocols: a text protocol based on JSON and a binary protocol based on MessagePack. MessagePack generally creates smaller messages compared to JSON. Older browsers must support XHR level 2 to provide MessagePack protocol support.
Yes it does! If you're talking about self host: https://docs.microsoft.com/en-us/archive/blogs/jpsanders/how-to-walkthrough-using-httplistener-or-http-server-unmanaged-code-c-as-an-ssl-simple-server
If you're using IIS: http://www.iis.net/learn/manage/configuring-security/how-to-set-up-ssl-on-iis
SSL is a host concern, not really related to SignalR.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With