This project is read-only.

Windows Phone 8 - (WSS) websocket connection

Aug 24, 2013 at 12:09 AM
Hi Kerry,

I recently stared implementing websocket client using websocket4net.
I ran a below code on my phone to see if it compiles okay.

using WebSocket4Net;

WebSocket websocket = new WebSocket("");
websocket.Opened += new EventHandler(websocket_Opened);
websocket.Error += new EventHandler<ErrorEventArgs>(websocket_Error);
websocket.Closed += new EventHandler(websocket_Closed);
websocket.MessageReceived += new EventHandler(websocket_MessageReceived);

and it communicates to the server without installing a certification on the phone.
Shouldn't the code validate the certificate? or CN?
The certificate is our custom signed by own CA.
Please let me know. Thank you.
Aug 24, 2013 at 9:54 AM
Sorry, websocket4net doesn't expose any api for server certificate validation.

should be
Aug 26, 2013 at 3:43 PM
Thank you for the answer Kerry and sorry for the typo.
Please correct me if I am wrong.
So, to communicate with SSL enabled server(wss://..) using websocket4net, I do not need a CA cert installed on the device.
And this is how it supposed to work. Is that right?
Please let me know. thank you.
Aug 26, 2013 at 4:43 PM
Yes, if your server side doesn't require the client certificate.
Aug 26, 2013 at 6:21 PM
Okay, Thank you so much!