publish a text message to the room
if(text != null && text.length>0){ // lame attempt to prevent markup text=text.replace(/</g,'<'); text=text.replace(/>/g,'>'); dojox.cometd.publish("/chat/demo/" + this.roomId, { user: this._username, chat: text}); }