Fix due to the added QueryString property in WebSocketService.cs

This commit is contained in:
sta
2012-10-22 14:58:43 +09:00
parent a7eef35c96
commit c55b5d6479
78 changed files with 1346 additions and 830 deletions

View File

@@ -164,7 +164,7 @@ using WebSocketSharp.Server;
public class Echo : WebSocketService
{
protected override void onMessage(object sender, MessageEventArgs e)
protected override void OnMessage(object sender, MessageEventArgs e)
{
Send(e.Data);
}
@@ -180,16 +180,16 @@ using WebSocketSharp.Server;
public class Chat : WebSocketService
{
protected override void onMessage(object sender, MessageEventArgs e)
protected override void OnMessage(object sender, MessageEventArgs e)
{
Publish(e.Data);
}
}
```
If you override the `onMessage` method, it is bound to the server side `WebSocket.OnMessage` event.
If you override the `OnMessage` method, it is bound to the server side `WebSocket.OnMessage` event.
In addition, if you override the `onOpen`, `onError` and `onClose` methods, each of them is bound to the `WebSocket.OnOpen`, `WebSocket.OnError` and `WebSocket.OnClose` events.
In addition, if you override the `OnOpen`, `OnError` and `OnClose` methods, each of them is bound to the `WebSocket.OnOpen`, `WebSocket.OnError` and `WebSocket.OnClose` events.
#### Step 3 ####