send method

  1. @override
Future<int> send(
  1. CommunicateData<Socket> data
)
override

Implementation

@override
Future<int> send(CommunicateData<Socket> data) async {
  data.connection
      .write("${data.message.message.length}\n${data.message.message}");
  return Future(() => data.message.message.length);
}