public function sendAndReceive($buffer, stdClass $context) { if ($this->async) { return $this->asyncSendAndReceive($buffer, $context); } return $this->syncSendAndReceive($buffer, $context); }