Fix due to the modified Ext.cs, WebSocketServerBase.cs and WebSocketService.cs
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -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.
Reference in New Issue
Block a user