private void send(final WebSocketTest toTest) {
        final String message = inputField.getText();
        if (arrayCheckBox.isChecked()) {
            final String[] messages = new String[100];
            for (int i = 0; i < messages.length; i++) {
                messages[i] = message;
            }
            toTest.send(messages);
        } else if (listCheckBox.isChecked()) {
            toTest.send(message, 100);
        } else {
            toTest.send(message);
        }
    }
private void send ( final WebSocketTest toTest ) { final String message = inputField . getText ( ) ; if ( arrayCheckBox . isChecked ( ) ) { final String [ ] messages = new String [ 100 ] ; for ( int i = 0 ; i < messages . length ; i ++ ) { messages [ i ] = message ; } toTest . send ( messages ) ; } else if ( listCheckBox . isChecked ( ) ) { toTest . send ( message , 100 ) ; } else { toTest . send ( message ) ; } }
@param toTest sends current message to the server using the chosen socket.