Proxy for socket connection

How to we can do socket connection through http-proxy-middleware ?
I wont to run dremio image through container app.
And also handle dremio calls through that middleware.