app/lib/pusher/Pusher.java
/**
     * Build query string that will be appended to the URI and HMAC/SHA256 encoded
     * @param eventName
     * @param jsonData
     * @return
     */
Build query string that will be appended to the URI and HMAC/SHA256 encoded
@param eventName
@param jsonData
@return
Build query string that will be appended to the URI and HMAC / SHA256 encoded @param eventName @param jsonData @return
private static String buildQuery(String eventName, String jsonData, String socketID){
        StringBuffer buffer = new StringBuffer();
        buffer.append("auth_key=");
        buffer.append(pusherApplicationKey);
        buffer.append("&auth_timestamp=");
        buffer.append(System.currentTimeMillis() / 1000);
        buffer.append("&auth_version=1.0");
        buffer.append("&body_md5=");
        buffer.append(md5Representation(jsonData));
        buffer.append("&name=");
        buffer.append(eventName);
        if (!socketID.isEmpty()) {
            buffer.append("&socket_id=");
            buffer.append(socketID);
        }
        return buffer.toString();
    }
private static String buildQuery ( String eventName , String jsonData , String socketID ) { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( "auth_key=" ) ; buffer . append ( pusherApplicationKey ) ; buffer . append ( "&auth_timestamp=" ) ; buffer . append ( System . currentTimeMillis ( ) / 1000 ) ; buffer . append ( "&auth_version=1.0" ) ; buffer . append ( "&body_md5=" ) ; buffer . append ( md5Representation ( jsonData ) ) ; buffer . append ( "&name=" ) ; buffer . append ( eventName ) ; if ( ! socketID . isEmpty ( ) ) { buffer . append ( "&socket_id=" ) ; buffer . append ( socketID ) ; } return buffer . toString ( ) ; }
Build query string that will be appended to the URI and HMAC/SHA256 encoded
 @param eventName
 @param jsonData
 @return
Build query string that will be appended to the URI and HMAC / SHA256 encoded @param eventName @param jsonData @return
//Auth_Key //Timestamp //Auth_version //MD5 body //Event Name //Append socket id if set //Return content of buffer