Added ability to provide cookies for the web socket connection