SlowClients class final

Counts realtime clients the server disconnected for reading too slowly (realtime_slow_clients_total, by transport): WebSockets with more than their route's maxBufferedBytes waiting to be sent, and server-sent event streams with more than Response.sse's.

Constructors

SlowClients({void onSlowClient(String transport)?})
A counter that also tells onSlowClient (the application's metrics).

Properties

hashCode → int
The hash code for this object.
no setterinherited
onSlowClient → void Function(String transport)?
Called with the transport of each slow client.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

count(String transport) → int
Slow clients of transport disconnected so far by this isolate.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
record(String transport) → void
Counts one slow client of transport.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

sse → const String
The transport of a server-sent event stream.
webSocket → const String
The transport of a WebSocket.