public function onError(ConnectionInterface $connection, Exception $e)
    {
        $this->command->error($e->getMessage());

        \Log::error($e);

        $connection->close();
    }
public function onError(ConnectionInterface $connection, Exception $e)
    {
        $this->command->error($e->getMessage());

        \Log::error($e);

        $connection->close();
    }
public function onError ( ConnectionInterface $ connection , Exception $ e ) { $ this -> command -> error ( $ e -> getMessage ( ) ) ; \ Log :: error ( $ e ) ; $ connection -> close ( ) ; }
Socket error.
Socket error .