LoggingInterceptor class
A simple logging interceptor for debugging.
- Inheritance
-
- Object
- WebSocketInterceptor
- LoggingInterceptor
Constructors
- LoggingInterceptor({required void logger(String), String tag = 'WS'})
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onError(
dynamic error) → Future -
Called when a connection error occurs. Return
nullto suppress the error.override -
onReceive(
WebSocketMessage message) → Future< WebSocketMessage?> -
Called after a message is received. Return
nullto drop the message.override -
onSend(
WebSocketMessage message) → Future< WebSocketMessage?> -
Called before a message is sent. Return
nullto drop the message.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited