pushError method

void pushError(
  1. String agentId,
  2. String code,
  3. String msg
)

Pushes a raw hub error frame to an agent's live connection (error-surfacing tests).

Implementation

void pushError(String agentId, String code, String msg) {
  final ws = _conns[agentId];
  if (ws != null) _reply(ws, {'op': 'error', 'code': code, 'msg': msg});
}