Fix a few

This commit is contained in:
sta 2014-01-03 15:52:47 +09:00
parent 670af8919c
commit d45ad95299
2 changed files with 3 additions and 3 deletions

View File

@ -9,8 +9,8 @@ namespace Example2
{
protected override void OnMessage (MessageEventArgs e)
{
var name = Context.QueryString ["name"];
var msg = name != null
var name = Context.QueryString ["name"] ?? String.Empty;
var msg = name.Length > 0
? String.Format ("'{0}' to {1}", e.Data, name)
: e.Data;

View File

@ -46,7 +46,7 @@ namespace Example2
wssv.Start ();
if (wssv.IsListening) {
Console.WriteLine (
"A WebSocket Server listening on port: {0} service paths:", wssv.Port);
"A WebSocket server listening on port: {0} service paths:", wssv.Port);
foreach (var path in wssv.WebSocketServices.ServicePaths)
Console.WriteLine (" {0}", path);