WebSocket/Runner.php
public function onError(Bucket $bucket)
    {
        $data = $bucket->getData();

        if (isset($data['exception']) && $data['exception'] instanceof Quit) {
            throw $data['exception'];
        }

        $this->onEvent('error', $bucket);
    }
public function onError(Bucket $bucket)
    {
        $data = $bucket->getData();

        if (isset($data['exception']) && $data['exception'] instanceof Quit) {
            throw $data['exception'];
        }

        $this->onEvent('error', $bucket);
    }
public function onError ( Bucket $ bucket ) { $ data = $ bucket -> getData ( ) ; if ( isset ( $ data [ 'exception' ] ) && $ data [ 'exception' ] instanceof Quit ) { throw $ data [ 'exception' ] ; } $ this -> onEvent ( 'error' , $ bucket ) ; }
Fire a "error" event

@param Hoa\Event\Bucket $bucket
Fire a error event