CorextraSocketLogger class
Logs socket traffic the way AppLoggerInterceptor + CorextraDevToolsInterceptor log Dio: console blocks plus DevTools Network rows (filter "Socket").
Constructors
Properties
- captureBody → bool
-
final
- consoleEnabled → bool
-
Pretty console logs, in debug builds only — like
AppLoggerInterceptor.enabled.final - devToolsEnabled → bool?
-
When
null, defers toCorextraDevTools.instance.enabled— likeCorextraDevToolsInterceptor.enabled.final - hashCode → int
-
The hash code for this object.
no setterinherited
- maxBodyLength → int
-
Caps raw string bodies only, same as
CorextraDevToolsInterceptor.maxBodyLength.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → String
-
The socket server's URL, shown on every captured row.
final
Methods
-
emit(
String event, Object? data) → void - Logs a message the app sent without waiting for an ack.
-
emitWithAck<
T> (String event, Object? data, Future< T> send()) → Future<T> -
Logs a sent message and its ack;
senddoes the real emit and resolves with the ack (or throws on timeout). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
receive(
String event, Object? data, {bool isError = false}) → void -
Logs a message the server pushed; pass
isErrorfor failures such asconnect_error. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited