java/srcPubnubApi/com/pubnub/api/PubnubCore.java
/**
     * Listen for a message on a channel.
     *
     * @param channels  array to listen on
     * @param callback  to call
     * @param timetoken to use for subscribing
     * @throws PubnubException
     */
Listen for a message on a channel.
@param channels  array to listen on
@param callback  to call
@param timetoken to use for subscribing
@throws PubnubException
Listen for a message on a channel . @param channels array to listen on @param callback to call @param timetoken to use for subscribing @throws PubnubException
public void subscribe(String[] channels, Callback callback, String timetoken)
            throws PubnubException {
        Hashtable args = new Hashtable();
        args.put("channels", channels);
        args.put("callback", callback);
        args.put("timetoken", timetoken);
        subscribe(args);
    }
public void subscribe ( String [ ] channels , Callback callback , String timetoken ) throws PubnubException { Hashtable args = new Hashtable ( ) ; args . put ( "channels" , channels ) ; args . put ( "callback" , callback ) ; args . put ( "timetoken" , timetoken ) ; subscribe ( args ) ; }
Listen for a message on a channel.
Listen for a message on a channel .