public ChatMessage sendMessage ( String text ) { if ( text != null && ! text . isEmpty ( ) ) { ChatMessage message = new ChatMessage ( self , text ) ; eventManager . fireRemoteEvent ( sendEvent , message ) ; return message ; } return null ; }
Sends a message to a chat session .