send method

FutureOr send(
  1. Object? data
)

Helper method to just send data;

Implementation

FutureOr<dynamic> send(Object? data) async {
  write(data);
  return await close();
}