add java websocket agent