pushMsg method

void pushMsg(
  1. String agentId,
  2. Map<String, dynamic> msg
)

Pushes a raw hub msg frame to an agent's live connection (undecryptable-payload delivery tests).

Implementation

void pushMsg(String agentId, Map<String, dynamic> msg) {
  final ws = _conns[agentId];
  if (ws != null) _reply(ws, {'op': 'msg', ...msg});
}