Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SignalR WebSockets on IIS 7.5

Tags:

On my IIS 7.5, my SignalR application always used long polling. As per my search, IIS 7.5 does not support WebSockets yet.

I hope, I missed some tools or configurations to enable WebSockets in IIS 7.5. Or I didn't?

like image 947
ZeroHackeR Avatar asked Jan 02 '13 19:01

ZeroHackeR


People also ask

How do I enable Websockets on my server?

- In Control Panel, click Programs and Features, and then click Turn Windows features on or off. Expand Internet Information Services, expand World Wide Web Services, expand Application Development Features, and then select WebSocket Protocol. Click OK. Click Close.

How do I start a WebSocket?

To open a websocket connection, we need to create new WebSocket using the special protocol ws in the url: let socket = new WebSocket("ws://javascript.info"); There's also encrypted wss:// protocol. It's like HTTPS for websockets.


2 Answers

You cannot use WebSocket on IIS 7.5 (in other words on Windows Server 2008 R2 or Windows 7) because it requires HTTP.sys level changes AFAIK. So, you need IIS 8.0 and Windows Server 2012 or Windows 8 combination to leverage WebSocket. Also, IIS Express 8.0 supports WebSockect, too but you cannot still leverage that if you are on an OS which is lower than Windows 8 or Windows Server 2012.

like image 176
tugberk Avatar answered Sep 26 '22 04:09

tugberk


IIS 8 Express Supports websockets New Features

Windows 7 is considered a Down-Level Operating system and doesn't support Web Sockets. Known Issues and Limitations

Time to upgrade to Windows 8 if you want to support for web-sockets!

like image 32
JJS Avatar answered Sep 24 '22 04:09

JJS