public function handleWsError($e)
    {
        // Pawl pls
        if (strpos($e->getMessage(), 'Tried to write to closed stream') !== false) {
            return;
        }

        $this->logger->error('websocket error', ['e' => $e->getMessage()]);
        $this->emit('error', [$e, $this]);

        $this->handleWsClose(0, 'websocket error');
    }
public function handleWsError($e)
    {
        // Pawl pls
        if (strpos($e->getMessage(), 'Tried to write to closed stream') !== false) {
            return;
        }

        $this->logger->error('websocket error', ['e' => $e->getMessage()]);
        $this->emit('error', [$e, $this]);

        $this->handleWsClose(0, 'websocket error');
    }
public function handleWsError ( $ e ) { // Pawl pls if ( strpos ( $ e -> getMessage ( ) , 'Tried to write to closed stream' ) !== false ) { return ; } $ this -> logger -> error ( 'websocket error' , [ 'e' => $ e -> getMessage ( ) ] ) ; $ this -> emit ( 'error' , [ $ e , $ this ] ) ; $ this -> handleWsClose ( 0 , 'websocket error' ) ; }
Handles WebSocket errors received by the client.

@param \Exception $e The error.
Handles WebSocket errors received by the client .