How do I connect my HTML document to my Socket.io Heroku server #21395
-
I recently learned socket.io and I made a simple app with it, and then published it on a heroku app. They say you should write this code in your html document for socket.io:
This is from socket.io’s documentation page. But I can’t figure out how I connect to my heroku app were my socket.io’s index.js lies so my html document can read the emitted events. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Nevermind, I solved it! Just put your heroku app url inside io([here]). |
Beta Was this translation helpful? Give feedback.
-
Hey @sebastianelstadt, Thanks for coming back to share what worked for you! |
Beta Was this translation helpful? Give feedback.
Nevermind, I solved it! Just put your heroku app url inside io([here]).