0

I am trying to make a socket connection and pass the token in the headers of the connection. I keep getting a

"Error initializing handshake with https://webpage:8080/"

The code I have is:

NameValueCollection headers = new NameValueCollection();
headers.Add("token", "xxxtoken");
client = new Client("https://supersecurepage:8080", headers);
client.Connect();

What could be wrong? Thank you!

The version of my nugget is: 1.0.2 And the SocketIO server is: 1.3.7

Thank you,

Michael Matias

Mike
  • 421
  • 5
  • 16
  • is your "supersecure" page hosted locally or using a self-signed certificate? – Gusman Jun 01 '16 at 22:11
  • it's in a public domain, I tried replacing that with it's IP address too. – Mike Jun 02 '16 at 09:05
  • But does it use a self signed certificate? – Gusman Jun 02 '16 at 13:13
  • It is not self signed. – Mike Jun 02 '16 at 16:53
  • checl this: http://stackoverflow.com/questions/36792240/socketio4net-error-initializing-handshake-with-https-localhost (even if your certificate is not self-sigend it may not be configured correctly) and this http://stackoverflow.com/questions/24219763/socketio4net-handshake-error – Gusman Jun 02 '16 at 16:56

0 Answers0