this is a java websocket demo