Class HttpWebSocketConnectionCollection
Provides a managed object to manage HttpWebSocket connections.
public sealed class HttpWebSocketConnectionCollection
- Inheritance
-
HttpWebSocketConnectionCollection
- Inherited Members
Properties
- ActiveConnections
Gets an number indicating the amount of active web socket connections.
Methods
- All()
Gets all actives HttpWebSocket instances.
- DropAll()
Closes all registered and active HttpWebSocket in this collections.
- Find(Func<string, bool>)
Gets all actives HttpWebSocket instances that matches their identifier predicate.
- GetByIdentifier(string)
Gets the Web Sockect connection for the specified identifier.
Events
- OnWebSocketRegister
Represents an event that is fired when an HttpWebSocket is registered in this collection.
- OnWebSocketUnregister
Represents an event that is fired when an HttpWebSocket is closed and removed from this collection.