/** Constructor. */
  public ClientUsingFetch() {

    session =
        Diffusion.sessions()
            .principal("client")
            .password("password")
            .open("ws://diffusion.example.com:80");

    topics = session.feature(Topics.class);
  }
 /** Close the session. */
 public void close() {
   session.close();
 }