Fixed a few part about WebSocket Server

This commit is contained in:
sta 2012-08-13 12:31:11 +09:00
parent 83730f913a
commit 4613831582

View File

@ -185,6 +185,10 @@ public class Chat : WebSocketService
} }
``` ```
If you override `onMessage` method, it is bound to server side `WebSocket.OnMessage` event.
In addition, if you override `onOpen`, `onError` and `onClose` methods, each of them is bound to `WebSocket.OnOpen`, `WebSocket.OnError` and `WebSocket.OnClose` events.
#### Step 3 #### #### Step 3 ####
Creating a instance of `WebSocketServer<T>` class. Creating a instance of `WebSocketServer<T>` class.