send method

Future send(
  1. Object? data
)

Helper method to just send data;

Implementation

Future send(Object? data) {
  write(data);
  return close();
}