@Kailash Just developing my Own Websocket class for Kite Connect. Im sending the following Header, but unable to handshake. Getting error 'An Existing connection was forcibly closed by Remote Host" This error indicates that the the Remote Host i.e. websocket.kite.trade unable to understand my Headers thereby closing the Connection. Could You pls tell me Actual-Like-Example of Headers including mandatory and optional headers with brief info. Below is what I'm Sending.
@Kailash the System.Net.Websockets is available from .Net 4.5 . But I'm trying to Implement my own class in .Net 4.0 using TcpClient. I can connect to my local server successfully but not with websocket.kite.trade. So Could You share the header details.?
@botany02 I recommend you use an existing library (there must be a 3rd party version) or you will have to implement the entire WebSocket protocol spec (https://tools.ietf.org/html/rfc6455)
I don't think this will be of any help, but here are the headers Chrome sends when Kite connects. None of these headers are set by us. They're a part of the WebSocket spec.
Does this help? https://msdn.microsoft.com/en-us/library/system.net.websockets.websocket(v=vs.110).aspx
the System.Net.Websockets is available from .Net 4.5 .
But I'm trying to Implement my own class in .Net 4.0 using TcpClient.
I can connect to my local server successfully but not with websocket.kite.trade.
So Could You share the header details.?
I don't think this will be of any help, but here are the headers Chrome sends when Kite connects. None of these headers are set by us. They're a part of the WebSocket spec.
Thanks...