@SuppressWarnings("restriction") @FXML private void sendButtonPressed(ActionEvent action) { // Send message to server String text = sendTextArea.getText(); websocketClientEndpoint.sendTextToServer(text); }
@SuppressWarnings("restriction") @FXML private void stopPongButtonPressed(ActionEvent action) { websocketClientEndpoint.sendTextToServer("STOPPONGING"); receiveTextArea.clear(); }
@SuppressWarnings("restriction") @FXML private void startPongButtonPressed(ActionEvent action) { websocketClientEndpoint.sendTextToServer("STARTPONGING"); }