引入两个js strophe.js strophe.muc.js

connection.muc.join("abc@conference.sand.chinacloudapp.cn",
    "15002",
    room_message,
    on_presence,
    on_roster, "000000");

发送消息

connection.muc.join("abc@conference.sand.chinacloudapp.cn", "15002", room_message, on_presence, on_roster, "000000");