C-DEngine 5.105

WebSocketSessionManager Methods

The WebSocketSessionManager type exposes the following members.

Methods


  Name Description
Public method Broadcast(array<Byte>[]()[][])
Sends binary data to every client in the WebSocket service.
Public method Broadcast(String)
Sends text data to every client in the WebSocket service.
Public method BroadcastAsync(array<Byte>[]()[][], Action)
Sends binary data asynchronously to every client in the WebSocket service.
Public method BroadcastAsync(String, Action)
Sends text data asynchronously to every client in the WebSocket service.
Public method BroadcastAsync(Stream, Int32, Action)
Sends binary data from the specified Stream asynchronously to every client in the WebSocket service.
Public method Broadping()()()()
Sends a Ping to every client in the WebSocket service.
Public method Broadping(String)
Sends a Ping with the specified message to every client in the WebSocket service.
Public method CloseSession(String)
Closes the session with the specified id.
Public method CloseSession(String, UInt16, String)
Closes the session with the specified id, code, and reason.
Public method CloseSession(String, CloseStatusCode, String)
Closes the session with the specified id, code, and reason.
Public method Equals(System.Object) (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method PingTo(String)
Sends a Ping to the client on the session with the specified id.
Public method PingTo(String, String)
Sends a Ping with the specified message to the client on the session with the specified id.
Public method SendTo(array<Byte>[]()[][], String)
Sends binary data to the client on the session with the specified id.
Public method SendTo(String, String)
Sends text data to the client on the session with the specified id.
Public method SendToAsync(array<Byte>[]()[][], String, Action<(Of <<'(Boolean>)>>))
Sends binary data asynchronously to the client on the session with the specified id.
Public method SendToAsync(String, String, Action<(Of <<'(Boolean>)>>))
Sends text data asynchronously to the client on the session with the specified id.
Public method SendToAsync(Stream, Int32, String, Action<(Of <<'(Boolean>)>>))
Sends binary data from the specified Stream asynchronously to the client on the session with the specified id.
Public method Sweep
Cleans up the inactive sessions in the WebSocket service.
Public method ToString (Inherited from Object.)
Public method TryGetSession
Tries to get the session with the specified id.