コード例 #1
0
 @SuppressWarnings("restriction")
 @FXML
 private void sendButtonPressed(ActionEvent action) {
   // Send message to server
   String text = sendTextArea.getText();
   websocketClientEndpoint.sendTextToServer(text);
 }
コード例 #2
0
 @SuppressWarnings("restriction")
 @FXML
 private void stopPongButtonPressed(ActionEvent action) {
   websocketClientEndpoint.sendTextToServer("STOPPONGING");
   receiveTextArea.clear();
 }
コード例 #3
0
 @SuppressWarnings("restriction")
 @FXML
 private void startPongButtonPressed(ActionEvent action) {
   websocketClientEndpoint.sendTextToServer("STARTPONGING");
 }