code: def _send_packet(self, data):
          " Send to server. "
          data = json.dumps(data)
          ensure_future(self.pipe.write_message(data)f _send_packet(self, data):
          " Send to server. "
          data = json.dumps(data)
          ensure_future(self.pipe.write_message(data))
docs: Send to server.