send method

void send(
  1. String action, {
  2. List<String>? properties,
  3. Object? values,
  4. int? id,
})

Implementation

void send(String action,
        {List<String>? properties, Object? values, int? id}) =>
    _socket.add(jsonEncode({
      'data': {
        'action': action,
        if (properties != null) 'properties': properties,
        if (values != null) 'values': values,
      },
      if (id != null) 'id': id,
    }));