Add websocket handling to proxy middleware.