public void sendMessage ( Message message ) throws NotConnectedException , InterruptedException { message . setTo ( room ) ; message . setType ( Message . Type . groupchat ) ; connection . sendStanza ( message ) ; }
Sends a Message to the chat room .