Any recommendations on how to achieve a persistent connection between a Next app and an API.
Ideally, open the connection on componentWillMount and close the connection on componentWillUnmount
I have only found solutions that work either on the client (e.g. XMLHttpRequest) or the server (e.g. axios httpAgent), but not universally