PlaydarResolver::sendResponse PHP Method

sendResponse() public method

Output reply Puts a 4-byte big-endian int first, denoting length of message
public sendResponse ( $response )
    public function sendResponse($response)
    {
        // i think json_spirit rejects \/ even tho it's valid json. doh.
        $str = str_replace('\\/', '/', json_encode($response));
        print pack('N', strlen($str));
        print $str;
    }