Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

There are 4 key methods that you are required to pay attention to:

public void onOpen(Session session)

public void onMessage(String message, Session session) 

public void onClose(Session session) 

public void onError(Session session, Throwable throwable)

...