1

I created an MVC web application and embedded an WebSockets chat server. I can deploy this app to an secure endpoint, but how can I get the WebSocketHandler to listen to a wss:// endpoint?

1 Answer 1

2

If your web app has a HTTPS binding, WSS should be able of connecting. Check your IIS configuration, enable the port TCP 443 with HTTPS binding and a certificate in the bindings configuration.

Now if you access the web app through HTTPS, you should connect via WSS without problems.

If you access via HTTP, the certificate is self signed, and you didn't accept it in the browser before, it will probably fail. Watch out with that.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you. I succeeded. But I had indeed a self signed certificate which didn't work with Safari but did work in Chrome. Have to get a trusted server certificate.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.