Breadcrumb

  • Creating Binary WebSocket Connections with Java EE 7 and JavaFX

    This tutorial covers how to create binary WebSocket connections with Java Platform, Enterprise Edition 7 (Java EE 7) and JavaFX.

    Duration: 60 minutes

    This content is intended for the following job role(s): Java EE Architect, Java - Server-Side Java EE Developer , Java - Core Java SE Developer

    Release Date: 06-DEC-2013

    Created by: Eduardo Moranchel

Reviews (1)

  • 10 years ago
    omar
    Excellent tutorial, however there is a showstopper in the onMessage code in the JavaFXBinaryWsClient class. The image control is updated from the wrong thread which causes an error. Change the code to: @OnMessage public void onMessage(InputStream input) { Platform.runLater(new Runnable() { @Override public void run() { Image image = new Image(input); imageView.setImage(image); } }); }

    Buttons