Fix a few

This commit is contained in:
sta
2014-03-13 16:08:28 +09:00
parent f068425b10
commit 20e2ac2521
6 changed files with 43 additions and 47 deletions

View File

@@ -26,7 +26,7 @@ namespace Example
ws.OnMessage += (sender, e) =>
nf.Notify (
new NotificationMessage () {
new NotificationMessage {
Summary = "WebSocket Message",
Body = e.Data,
Icon = "notification-message-im"
@@ -34,7 +34,7 @@ namespace Example
ws.OnError += (sender, e) =>
nf.Notify (
new NotificationMessage () {
new NotificationMessage {
Summary = "WebSocket Error",
Body = e.Message,
Icon = "notification-message-im"
@@ -42,7 +42,7 @@ namespace Example
ws.OnClose += (sender, e) =>
nf.Notify (
new NotificationMessage () {
new NotificationMessage {
Summary = String.Format ("WebSocket Close ({0})", e.Code),
Body = e.Reason,
Icon = "notification-message-im"
@@ -51,7 +51,6 @@ namespace Example
#if DEBUG
ws.Log.Level = LogLevel.Trace;
#endif
// Per-message Compression
//ws.Compression = CompressionMethod.Deflate;
@@ -80,9 +79,8 @@ namespace Example
Thread.Sleep (500);
Console.Write ("> ");
var msg = Console.ReadLine ();
if (msg == "exit") {
if (msg == "exit")
break;
}
ws.Send (msg);
}