java/srcPubnubApi/com/pubnub/api/PubnubCore.java
/**
     * Send a message to a channel.
     *
     * @param channel
     *            Channel name
     * @param message
     *            JSONObject to be published
     * @param callback
     *            object of sub class of Callback class
     */
Send a message to a channel.
@param channel
Channel name
@param message
JSONObject to be published
@param callback
object of sub class of Callback class
Send a message to a channel . @param channel Channel name @param message JSONObject to be published @param callback object of sub class of Callback class
public void publish(String channel, JSONObject message, boolean storeInHistory, Callback callback) {
        Hashtable args = new Hashtable();
        args.put("channel", channel);
        args.put("message", message);
        args.put("callback", callback);
        args.put("storeInHistory", (storeInHistory)?"":"0");
        publish(args);
    }
public void publish ( String channel , JSONObject message , boolean storeInHistory , Callback callback ) { Hashtable args = new Hashtable ( ) ; args . put ( "channel" , channel ) ; args . put ( "message" , message ) ; args . put ( "callback" , callback ) ; args . put ( "storeInHistory" , ( storeInHistory ) ? "" : "0" ) ; publish ( args ) ; }
Send a message to a channel.
Send a message to a channel .