Property | Type | Description | |
---|---|---|---|
Add | string | ||
Broadcast | void | ||
Broadcast | void | ||
Broadping | bool>.Dictionary | ||
Remove | bool | ||
Start | void | ||
Stop | void | ||
Stop | void | ||
WebSocketSessionManager | System | ||
WebSocketSessionManager | System | ||
broadcast | void | ||
broadcast | void | ||
broadcastAsync | void | ||
broadcastAsync | void | ||
checkIfCanSend | string | ||
createID | string | ||
setSweepTimer | void | ||
tryGetSession | bool |
Method | Description | |
---|---|---|
Broadcast ( byte data ) : void |
Broadcasts a binary data to all clients of the WebSocket service.
|
|
Broadcast ( string data ) : void |
Broadcasts a text data to all clients of the WebSocket service.
|
|
BroadcastAsync ( Stream stream, int length, System.Action completed ) : void |
Broadcasts a binary data from the specified Stream asynchronously to all clients of the WebSocket service. This method doesn't wait for the broadcast to be complete. |
|
BroadcastAsync ( byte data, System.Action completed ) : void |
Broadcasts a binary data asynchronously to all clients of the WebSocket service. This method doesn't wait for the broadcast to be complete. |
|
BroadcastAsync ( string data, System.Action completed ) : void |
Broadcasts a text data asynchronously to all clients of the WebSocket service. This method doesn't wait for the broadcast to be complete. |
|
Broadping ( ) : bool>.Dictionary |
Sends Pings to all clients of the WebSocket service.
|
|
Broadping ( string message ) : bool>.Dictionary |
Sends Pings with the specified message to all clients of the WebSocket service.
|
|
CloseSession ( string id ) : void |
Closes the session with the specified id.
|
|
CloseSession ( string id, CloseStatusCode code, string reason ) : void |
Closes the session with the specified id, code and reason.
|
|
CloseSession ( string id, ushort code, string reason ) : void |
Closes the session with the specified id, code and reason.
|
|
PingTo ( string id ) : bool |
Sends a Ping to the client associated with the specified id.
|
|
PingTo ( string id, string message ) : bool |
Sends a Ping with the specified message to the client associated with the specified id.
|
|
SendTo ( string id, byte data ) : void |
Sends a binary data to the client on the session with the specified id.
|
|
SendTo ( string id, string data ) : void |
Sends a text data to the client on the session with the specified id.
|
|
SendToAsync ( string id, Stream stream, int length, Action |
Sends a binary data from the specified Stream asynchronously to the client on the session with the specified id. This method doesn't wait for the send to be complete. |
|
SendToAsync ( string id, byte data, Action |
Sends a binary data asynchronously to the client on the session with the specified id. This method doesn't wait for the send to be complete. |
|
SendToAsync ( string id, string data, Action |
Sends a text data asynchronously to the client on the session with the specified id. This method doesn't wait for the send to be complete. |
|
Sweep ( ) : void |
Cleans up the inactive sessions.
|
|
TryGetSession ( string id, IWebSocketSession &session ) : bool |
Tries to get a WebSocket session information with the specified id.
|
|
this ( string id ) : IWebSocketSession |
Gets a WebSocket session information with the specified id.
|
Method | Description | |
---|---|---|
Add ( IWebSocketSession session ) : string | ||
Broadcast ( Opcode opcode, Stream stream, Stream>.Dictionary |
||
Broadcast ( Opcode opcode, byte data, byte[]>.Dictionary |
||
Broadping ( byte frameAsBytes, int timeOut ) : bool>.Dictionary |
||
Remove ( string id ) : bool | ||
Start ( ) : void | ||
Stop ( CloseEventArgs args, byte frameAsBytes ) : void | ||
Stop ( byte data, bool send ) : void | ||
WebSocketSessionManager ( ) : System | ||
WebSocketSessionManager ( System.Logger logger ) : System | ||
broadcast ( Opcode opcode, Stream stream, System.Action completed ) : void | ||
broadcast ( Opcode opcode, byte data, System.Action completed ) : void | ||
broadcastAsync ( Opcode opcode, Stream stream, System.Action completed ) : void | ||
broadcastAsync ( Opcode opcode, byte data, System.Action completed ) : void | ||
checkIfCanSend ( Func |
||
createID ( ) : string | ||
setSweepTimer ( double interval ) : void | ||
tryGetSession ( string id, IWebSocketSession &session ) : bool |
public Broadcast ( byte data ) : void | ||
data | byte |
/// An array of |
return | void |
public Broadcast ( string data ) : void | ||
data | string |
/// A |
return | void |
public BroadcastAsync ( Stream stream, int length, System.Action completed ) : void | ||
stream | Stream |
/// A |
length | int |
/// An |
completed | System.Action |
/// A |
return | void |
public BroadcastAsync ( byte data, System.Action completed ) : void | ||
data | byte |
/// An array of |
completed | System.Action |
/// A |
return | void |
public BroadcastAsync ( string data, System.Action completed ) : void | ||
data | string |
/// A |
completed | System.Action |
/// A |
return | void |
public Broadping ( string message ) : bool>.Dictionary |
||
message | string |
/// A |
return | bool>.Dictionary |
public CloseSession ( string id ) : void | ||
id | string |
/// A |
return | void |
public CloseSession ( string id, CloseStatusCode code, string reason ) : void | ||
id | string |
/// A |
code | CloseStatusCode |
/// One of the |
reason | string |
/// A |
return | void |
public CloseSession ( string id, ushort code, string reason ) : void | ||
id | string |
/// A |
code | ushort |
/// A |
reason | string |
/// A |
return | void |
public PingTo ( string id ) : bool | ||
id | string |
/// A |
return | bool |
public PingTo ( string id, string message ) : bool | ||
id | string |
/// A |
message | string |
/// A |
return | bool |
public SendTo ( string id, byte data ) : void | ||
id | string |
/// A |
data | byte |
/// An array of |
return | void |
public SendTo ( string id, string data ) : void | ||
id | string |
/// A |
data | string |
/// A |
return | void |
public SendToAsync ( string id, Stream stream, int length, Action |
||
id | string |
/// A |
stream | Stream |
/// A |
length | int |
/// An |
completed | Action |
/// An Action<bool> delegate that references the method(s) called when
/// the send is complete.
/// A |
return | void |
public SendToAsync ( string id, byte data, Action |
||
id | string |
/// A |
data | byte |
/// An array of |
completed | Action |
/// An Action<bool> delegate that references the method(s) called when
/// the send is complete.
/// A |
return | void |
public SendToAsync ( string id, string data, Action |
||
id | string |
/// A |
data | string |
/// A |
completed | Action |
/// An Action<bool> delegate that references the method(s) called when
/// the send is complete.
/// A |
return | void |
public TryGetSession ( string id, IWebSocketSession &session ) : bool | ||
id | string |
/// A |
session | IWebSocketSession |
/// When this method returns, a |
return | bool |
public this ( string id ) : IWebSocketSession | ||
id | string |
/// A |
return | IWebSocketSession |