Package chatroom.server.dataclass

Examples of chatroom.server.dataclass.Room.broadcast()


        if (to != null) {
            Jid jid = new Jid(to);
            if (jid.isRoom()) {
                Room room = server.getRoom(jid.getRoom());
                User user = server.getUserByConnection(connection);
                room.broadcast(msg, user.getNicknameByRoom(room));
            }
        }
    }

    public void onSendMessage(String roomName, String nickname, String sender, String type, String msg) {
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.