1
How to configure a certificate to make a connection with Javascript Websockets, using c’s Superwebsocket server#?
I need to create a websocket connection on an https page, the only way is using "wss", which has SSL protrocole, but I do not know how to properly use this type of connection.
public static void startServer()
{
ServerConfig config = new ServerConfig()
{
Name = "SuperWebSocket",
Ip = "Any",
Port = 8088,
Mode = SocketMode.Tcp,
Security = "tls"
};
CertificateConfig certificate = new CertificateConfig()
{
FilePath = @"C:/meucaminho",
Password = "123"
};
Which lib is used? This https://github.com/kerryjiang/SuperWebSocket?
– tvdias
Exactly this.
– Null
There is the indication that the project was completed, joining the
SuperSocket
. There is the possibility to use this other project?– tvdias
Superwebsocket is being merged into Supersocket as an Additional module Supersocket.WebSocket. You can use Supersocket.Websocket in the same way with Superwebsocket but with a Different namespace. https://github.com/kerryjiang/SuperWebSocket
– tvdias
@tvdias use Supersocket in my project? yes, I will implement.
– Null