NetCoreServer icon indicating copy to clipboard operation
NetCoreServer copied to clipboard

HTTPS and WSS on same port

Open phzi opened this issue 4 years ago • 2 comments

Couldn't see anything in the documentation about this. Is it possible to run a HTTPS server and WSS on the same port but under different directories, or would you need to use another server on top to accomplish that?

phzi avatar Feb 02 '20 06:02 phzi

Okay, so you can run a WSS and have it host static content, figured that out. But what if I want the WSS to be accessed on /wss and the static content to be / ?

phzi avatar Feb 02 '20 07:02 phzi

This example shows exactly what you need: https://github.com/chronoxor/NetCoreServer/blob/master/examples/WssChatServer/Program.cs

chronoxor avatar Feb 02 '20 13:02 chronoxor