WebSocketSessionManagerBroadcast Method (String) |
Sends data to every client in the WebSocket service.
Namespace:
Sfs2X.WebSocketSharp.Server
Assembly:
SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax public void Broadcast(
string data
)
Parameters
- data
- Type: SystemString
A String that represents the text data to send.
Exceptions Exception | Condition |
---|
InvalidOperationException |
The current state of the manager is not Start.
|
ArgumentNullException | data is .
|
ArgumentException | data could not be UTF-8-encoded.
|
See Also