From ca9988e5e3023e93a36ba6f4836eaadc1da2f143 Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 23 Jan 2014 15:33:51 +0900 Subject: [PATCH] Modified 'Secure Connection' --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9f951370..e2ed09b7 100644 --- a/README.md +++ b/README.md @@ -412,7 +412,7 @@ using (var ws = new WebSocket ("wss://example.com")) { } ``` -If you want to set the custom validation for the server certificate, you should use the `WebSocket.ServerCertificateValidationCallback` property. +If you want to set the custom validation for the server certificate, you should set the `WebSocket.ServerCertificateValidationCallback` property. ```cs ws.ServerCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => { @@ -423,7 +423,7 @@ ws.ServerCertificateValidationCallback = (sender, certificate, chain, sslPolicyE If you set this property to nothing, the validation does nothing with the server certificate and returns valid. -As a **WebSocket Server**, you should create an instance of the `WebSocketServer` or `HttpServer` class with some settings for the secure connection, like the following. +As a **WebSocket Server**, you should create an instance of the `WebSocketServer` or `HttpServer` class with some settings for the secure connection. It's like the following. ```cs var wssv = new WebSocketServer (4649, true);