Click here to Skip to main content
15,889,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am doing handshaking via web socket connectivity. My message for handshake has reached server but the connection is not remaining alive or so. I need to maintain the connection state even after handshaking. I am using ClientWebsocket.

Below is the exception got:
The 'Connection' header value 'upgrade,close' is invalid.


What I have tried:

Core Code as below:

<pre>ClientWebSocket <pre>objwebSocketClient=null;

objwebSocketClient.ConnectAsync(new Uri(uri), CancellationToken.None).Wait();
Posted
Updated 2-Aug-18 5:39am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900