Modified Example2
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using WebSocketSharp;
|
||||
using WebSocketSharp.Net;
|
||||
using WebSocketSharp.Server;
|
||||
|
||||
namespace Example2
|
||||
@@ -9,8 +8,8 @@ namespace Example2
|
||||
{
|
||||
protected override void OnMessage (MessageEventArgs e)
|
||||
{
|
||||
var name = Context.QueryString ["name"] ?? String.Empty;
|
||||
var msg = name.Length > 0
|
||||
var name = Context.QueryString ["name"];
|
||||
var msg = !name.IsNullOrEmpty ()
|
||||
? String.Format ("'{0}' to {1}", e.Data, name)
|
||||
: e.Data;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user