Example of java websocket.