src/Ratchet/Wamp/WampConnection.php
public function callError($id, $errorUri, $desc = '', $details = null) {
        if ($errorUri instanceof Topic) {
            $errorUri = (string)$errorUri;
        }

        $data = array(WAMP::MSG_CALL_ERROR, $id, $errorUri, $desc);

        if (null !== $details) {
            $data[] = $details;
        }

        return $this->send(json_encode($data));
    }
public function callError($id, $errorUri, $desc = '', $details = null) {
        if ($errorUri instanceof Topic) {
            $errorUri = (string)$errorUri;
        }

        $data = array(WAMP::MSG_CALL_ERROR, $id, $errorUri, $desc);

        if (null !== $details) {
            $data[] = $details;
        }

        return $this->send(json_encode($data));
    }
public function callError ( $ id , $ errorUri , $ desc = '' , $ details = null ) { if ( $ errorUri instanceof Topic ) { $ errorUri = ( string ) $ errorUri ; } $ data = array ( WAMP :: MSG_CALL_ERROR , $ id , $ errorUri , $ desc ) ; if ( null !== $ details ) { $ data [ ] = $ details ; } return $ this -> send ( json_encode ( $ data ) ) ; }
Respond with an error to a client call
@param string $id The   unique ID given by the client to respond to
@param string $errorUri The URI given to identify the specific error
@param string $desc     A developer-oriented description of the error
@param string $details An optional human readable detail message to send back
@return WampConnection
Respond with an error to a client call