WebSocketEvent class

Describes an event related to a WebSocket connection.

Constructors

WebSocketEvent({required String event, required DateTime timestamp, int? frameNumber, String? direction, String? opcode, int? payloadSize, String? errorType, String? errorMessage, Map<String, dynamic>? arguments})

Properties

arguments → Map<String, dynamic>?
final
direction → String?
final
errorMessage → String?
final
errorType → String?
final
event → String
The title of the recorded event.
final
frameNumber → int?
Additional event-specific information.
final
hashCode → int
The hash code for this object.
no setterinherited
opcode → String?
final
payloadSize → int?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timestamp → DateTime
The time at which the event occurred.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

parse(Map<String, dynamic>? json) → WebSocketEvent?