code: public void sendMessage(final byte[] message) {
          try {
              session.sendMessage(new BinaryMessage(message));
          }
          catch (IOException e) {
              logger.error("[sendBinaryMessage]", e);
          }
      }
docs: Sends a binary message using this object's websocket session.
  @param message json binary message