when a user sends a message to the server , this method will intercept the message and allow us to react to it . for now the message is read as a string . concode_field_sep PlaceHolder placeHolder concode_field_sep void onClose concode_elem_sep void onOpen
void function ( String arg0 , Session arg1 ) { System . out . println ( arg0 ) ; try { Set loc0 ; loc0 = arg1 . getOpenSessions ( ) ; Iterator loc1 = loc0 . iterator ( ) ; while ( loc1 . hasNext ( ) ) { Session loc2 = ( Session ) loc1 . next ( ) ; loc2 . getBasicRemote ( ) . sendText ( arg0 ) ; } } catch ( IOException loc0 ) { } }