Monkey patching hack to set cookies on websocket