Connecting to websocket using C# (I can connect using JavaScript, but C# gives Status code 200 error)

后端 未结 6 1742
情书的邮戳
情书的邮戳 2021-01-30 07:38

I am new in the area of websocket.

I can connect to websocket server using JavaScript using this code:

var webSocket = new WebSocket(url);
6条回答
  •  囚心锁ツ
    2021-01-30 08:14

    Websocket URLs should start with ws:// or wss:// where the latter is secure websocket.

提交回复
热议问题