Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
1

Socket Problem Node

aboutabot
aboutabot

Hey, I just learned SocketIO and Express on a tutorial and I don't really know it that well, and I tried to send a message from one client to the server to the other client in a room. This only works if I run the repl from the server, and then reload both the https://server.aboutabot.repl.co page and the replit page I coded it on.
help?

1 year ago
You are viewing a single comment. View All
1
Geocube101
Geocube101

@aboutabot
there is an issue with the <script> tag as the html page cannot locate the js files.
Try using:

<script src="script.js"></script>

...to load your script.js file

1 year ago