sendControlResponse method

void sendControlResponse(
  1. Map<String, dynamic> response
)

Send a control response back to the session.

Implementation

void sendControlResponse(Map<String, dynamic> response) {
  if (_ws == null || _state != WebSocketState.connected) return;
  _ws!.add(jsonEncode(response));
}