NodeJS, Socket.IO, HTML Webpage



Hi! I’m currently using from my webpage to send information to nodejs and back. Unfortunately I need to have the actual webpage running, not in a preview. How would I be able to run both the Node.JS socket server and the HTML socket client at the same time?


Run them on their own ports then access them from the workspace url. Preview is just a built-in web browser. Nothing special.


I tried that but then I got errors that NodeJS couldnt bind to port.