Modified Step 2 of 'WebSocket Server'
This commit is contained in:
parent
630da48fb3
commit
afe47c0158
@ -316,11 +316,11 @@ If you override the `WebSocketService.OnMessage` method, it's bound to the serve
|
|||||||
|
|
||||||
And if you override the `WebSocketService.OnOpen`, `WebSocketService.OnError` and `WebSocketService.OnClose` methods, each of them is bound to each server side event of `WebSocket.OnOpen`, `WebSocket.OnError` and `WebSocket.OnClose`.
|
And if you override the `WebSocketService.OnOpen`, `WebSocketService.OnError` and `WebSocketService.OnClose` methods, each of them is bound to each server side event of `WebSocket.OnOpen`, `WebSocket.OnError` and `WebSocket.OnClose`.
|
||||||
|
|
||||||
The `WebSocketService.Send (data)` method sends a data to the client of the current session to the WebSocket service.
|
The `WebSocketService.Send` method sends a data to the client of the current session to the WebSocket service.
|
||||||
|
|
||||||
The `WebSocketService.Sessions` (its type is `WebSocketSharp.Server.WebSocketSessionManager`) property provides some functions for the sessions to the WebSocket service.
|
The `WebSocketService.Sessions` (its type is `WebSocketSharp.Server.WebSocketSessionManager`) property provides some functions for the sessions to the WebSocket service.
|
||||||
|
|
||||||
The `WebSocketService.Sessions.Broadcast (data)` method broadcasts a data to all clients of the WebSocket service.
|
The `WebSocketService.Sessions.Broadcast` method broadcasts a data to all clients of the WebSocket service.
|
||||||
|
|
||||||
#### Step 3 ####
|
#### Step 3 ####
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user