Examples of PEPPubSub


Examples of org.jivesoftware.smackx.packet.PEPPubSub

     *
     * @param item the item to publish.
     */
    public void publish(PEPItem item) {
        // Create a new message to publish the event.
        PEPPubSub pubSub = new PEPPubSub(item);
        pubSub.setType(Type.SET);
        //pubSub.setFrom(connection.getUser());
        // Send the message that contains the roster
        connection.sendPacket(pubSub);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.