title: How to implement Socket.io with next.js without separate node server
body: <p>I want to build a chat system with Next.js. I am not sure how I have to setup the socket server.</p>
  <p>I want this to implement Next server not with a separate server.
  Should I have to make a server.js file in root and run a server?</p>