/** * Emits an event to this connection with the given payload. * * @param Payload $payload * * @return boolean */ public function emit(Payload $payload) { $this->connection->send($payload->encode()); }