Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SignalR and HTTPS

Tags:

https

signalr

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?

like image 260
Haddar Macdasi Avatar asked Nov 11 '12 22:11

Haddar Macdasi


People also ask

Does SignalR need SSL?

If your SignalR application transmits sensitive information between the client and server, use SSL for the transport.

Does SignalR use HTTP?

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.

What is the difference between SignalR and WebSockets?

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.

What protocol does SignalR use?

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.


1 Answers

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.

like image 141
davidfowl Avatar answered Jan 02 '23 04:01

davidfowl