an example of websockets with java