Sisk

Class

HttpWebSocketConnectionCollection

Namespace
Sisk.Core.Http.Streams
Assembly
Sisk.Core.dll

Provides a managed object to manage HttpWebSocket connections.

C#
public sealed class HttpWebSocketConnectionCollection : IReadOnlyCollection<HttpWebSocket>, IEnumerable<HttpWebSocket>, IEnumerable

Inheritance #

object ← HttpWebSocketConnectionCollection

Implements #

IReadOnlyCollection<HttpWebSocket>, IEnumerable<HttpWebSocket>, IEnumerable

Inherited Members #

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties #

NameDescription
ActiveConnectionsGets an number indicating the amount of active web socket connections.
Count

Methods #

NameDescription
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.
GetEnumerator()
OnWebSocketRegisterRepresents an event that is fired when an HttpWebSocket is registered in this collection.
OnWebSocketUnregisterRepresents an event that is fired when an HttpWebSocket is closed and removed from this collection.

Type to search the documentation and the API reference.