c# - Self hosted WCF using WebSockets is not working using SSL -
i have code in console application. trying connect dev tools chrome, error although problem sure in wcf side: websocket connection 'wss://127.0.0.1:5650/echo' failed: error in connection establishment: net::err_connection_reset wss not hitting server code, no exceptions not logs. ws minimum modifications working fine. used microsoft.websockets nuget simplify code: websockethost server = new websockethost(typeof(echowsservice), new uri("https://127.0.0.1:5650/echo")); var bindingssl = websockethost.createwebsocketbinding(true); server.addwebsocketendpoint(bindingssl); server.open(); i tried custom cert validator, said not hitting code. now have same code except server.open() in asp.net app using serviceroute , , working pretty fine! yes ssl , self signed cert generated vs iis express: routetable.routes.add(new serviceroute("echo", new trwebsocketservicefactory(), typeof(echowsservice))); the browser side is: var ws = new websocket('...