NodeJS, Socket.IO, HTML Webpage

html
nodejs

#1

Hi! I’m currently using socket.io 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?


#2

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


#3

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