debugInjectServerMessage method

void debugInjectServerMessage(
  1. Map<String, Object?> message
)

Test-only entry point. Forwards a server message into the event stream without going through a WebSocket. Mirror of what _onMessage would do on real input.

Implementation

void debugInjectServerMessage(Map<String, Object?> message) {
  _dispatch(message);
}