CorextraSocketLogger class

Logs socket traffic the way AppLoggerInterceptor + CorextraDevToolsInterceptor log Dio: console blocks plus DevTools Network rows (filter "Socket").

Constructors

CorextraSocketLogger({required String url, bool consoleEnabled = true, bool? devToolsEnabled, bool captureBody = true, int maxBodyLength = 100000})
const

Properties

captureBody → bool
final
consoleEnabled → bool
Pretty console logs, in debug builds only — like AppLoggerInterceptor.enabled.
final
devToolsEnabled → bool?
When null, defers to CorextraDevTools.instance.enabled — like CorextraDevToolsInterceptor.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; send does 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 isError for failures such as connect_error.
toString() → String
A string representation of this object.
inherited

Operators

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