asynchronously closes the websocket session . this will wait until all remaining messages have been sent to the client and then close the websocket session . concode_field_sep Async async concode_elem_sep long messagesToSendLength concode_elem_sep SendHandler sendHandler concode_elem_sep Session session concode_elem_sep boolean isSendingMessage concode_elem_sep boolean isClosing concode_elem_sep LinkedList<AbstractWebsocketMessage> messagesToSend concode_field_sep long calculateMessageLength concode_elem_sep void sendMessage concode_elem_sep void internalSendMessageAsync concode_elem_sep void onResult
void function ( ) { sendMessage ( new CloseWebsocketMessage ( ) ) ; }