Fix due to the modified Ext.cs, WebSocketServerBase.cs and WebSocketService.cs

This commit is contained in:
sta
2013-01-28 16:22:24 +09:00
parent de3f41dd3a
commit 95382924e0
87 changed files with 1711 additions and 952 deletions
+5 -5
View File
@@ -23,22 +23,22 @@ namespace Example3 {
return Interlocked.Increment(ref _num);
}
protected override void OnOpen(object sender, EventArgs e)
protected override void OnOpen()
{
_name = getName();
}
protected override void OnMessage(object sender, MessageEventArgs e)
protected override void OnMessage(MessageEventArgs e)
{
var msg = String.Format("{0}: {1}", _name, e.Data);
Publish(msg);
Broadcast(msg);
}
protected override void OnClose(object sender, CloseEventArgs e)
protected override void OnClose(CloseEventArgs e)
{
var msg = String.Format("{0} got logged off...", _name);
Publish(msg);
Broadcast(msg);
}
}
}
+1 -1
View File
@@ -6,7 +6,7 @@ namespace Example3 {
public class Echo : WebSocketService
{
protected override void OnMessage(object sender, MessageEventArgs e)
protected override void OnMessage(MessageEventArgs e)
{
var msg = QueryString.Exists("name")
? String.Format("'{0}' returns to {1}", e.Data, QueryString["name"])
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.