I'm trying to utilize ws (web socket) in my Nextjs app.
Instead of creating a new server, I want to pass the current server object to the ws initialization:
const { Server } = require('ws');
wss = new Server({ myNextJs server instance here ... });
So: how to get a reference to the Nextjs server at run time?