ChevCast
ChevCast

Reputation: 59234

SignalR won't use Websocket protocol even though I have the protocol installed in windows 8

I'm using signalr to do some real-time events in my web application. I'm trying to force signalr to use the new websocket protocol but it won't, even if I specify it.

$.connection.hub.start({ transport: 'webSockets' })

I definitely have the web socket protocol installed and I am running Windows 8 with IIS 8.

What else do I need to do to enable web sockets support in signalr?

Upvotes: 5

Views: 5466

Answers (3)

shivam
shivam

Reputation: 161

If you are already using framework 4.5 but still no luck, add an HTTPS binding to your IIS website and access the website over HTTPS.

Upvotes: 0

Damian Edwards
Damian Edwards

Reputation: 7339

Ensure that your app is using the .NET 4.5 assembly from the SignalR package. If the project is targeting 4.0, or it started that way, then nuget would have added a reference to the 4.0 SignalR assembly which doesn't support websockets. If that's the case, then just uninstall and re-install the signalr packages into your project.

Upvotes: 11

N. Taylor Mullen
N. Taylor Mullen

Reputation: 18311

Web Sockets requires .NET 4.5.

If you try running it on Windows Server 8 in the future be sure to activate the Web Sockets feature.

Upvotes: 3

Related Questions