onStateChanged abstract method

void onStateChanged(
  1. WsConnectionState state, {
  2. String? url,
  3. Object? raw,
})

Records a connection-state transition. raw is the client's own state object, retained as a stringified hint when present.

Implementation

void onStateChanged(WsConnectionState state, {String? url, Object? raw});