From ee59fb3755d653929d5561e78942be8fc623b6c1 Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 28 Mar 2014 17:00:16 +0900 Subject: [PATCH] Fix a few for Example --- Example/Program.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Example/Program.cs b/Example/Program.cs index 6660f1b4..ab0ae5ba 100644 --- a/Example/Program.cs +++ b/Example/Program.cs @@ -15,11 +15,9 @@ namespace Example //using (var ws = new WebSocket ("ws://localhost:4649/Echo")) //using (var ws = new WebSocket ("wss://localhost:4649/Echo")) //using (var ws = new WebSocket ("ws://localhost:4649/Echo?name=nobita")) - //using (var ws = new WebSocket ("ws://localhost:4649/エコー?name=のび太")) //using (var ws = new WebSocket ("ws://localhost:4649/Chat")) //using (var ws = new WebSocket ("wss://localhost:4649/Chat")) //using (var ws = new WebSocket ("ws://localhost:4649/Chat?name=nobita")) - //using (var ws = new WebSocket ("ws://localhost:4649/チャット?name=のび太")) { /* Setting WebSocket events */ ws.OnOpen += (sender, e) => ws.Send ("Hi, there!"); @@ -67,11 +65,13 @@ namespace Example // Setting Origin header //ws.Origin = "http://echo.websocket.org"; + //ws.Origin = "http://localhost:4649"; // Setting Cookies - //ws.SetCookie (new Cookie ("nobita", "\"idiot, gunfighter\"")); - //ws.SetCookie (new Cookie ("dora", "tanuki")); + //ws.SetCookie (new Cookie ("name", "nobita")); + //ws.SetCookie (new Cookie ("role", "\"idiot, gunfighter\"")); + // Connecting to the server ws.Connect (); //ws.ConnectAsync (); @@ -83,6 +83,7 @@ namespace Example if (msg == "exit") break; + // Sending a text message ws.Send (msg); } }