java websocket support: sample code