adds proxy support for http and websocket client