public void sendMessage ( String text ) throws NotConnectedException , InterruptedException { Message message = createMessage ( ) ; message . setBody ( text ) ; connection . sendStanza ( message ) ; }
Sends a message to the chat room .