03-8-2014, 02:58 AM | #1 |
behanjc & me are <3'ers
Join Date: Jul 2006
Posts: 2,051
|
Putting socket.io on a Website
So I'm getting into working with node.js and socket.io to make real-time web games, but I'm running into some obstacles.
I've already figured out how to install node.js and socket.io on my computer, and I can run basic servers and open them through http://localhost:8888/. But now what I don't understand, and there doesn't seem to be anything on the web that explains this, is how to get this onto a website. Obviously, someone else on the internet that enters that same URL isn't going to see the same thing as what's on my screen. How do I get this onto a webpage so that anyone that visits that URL accesses the server? |
03-8-2014, 05:54 AM | #2 |
Confirmed Heartbreaker
Join Date: Jul 2012
Age: 35
Posts: 5,858
|
Re: Putting socket.io on a Website
Use html code idk
__________________
|
03-10-2014, 10:02 AM | #3 |
Banned
Join Date: Nov 2013
Posts: 8,563
|
Re: Putting socket.io on a Website
is there a specific error you're getting? i don't know anything about js but i instantly thought of permissions
see if dev console of the user's browser reports any errors as well |
03-10-2014, 10:15 AM | #4 |
nanodesu~
|
Re: Putting socket.io on a Website
Uh, you have to install node.js and socket.io on a server instead of your personal computer. That generally requires that you have hosting with shell access, or a dedicated server / VPS.
__________________
FMO AAAs (1): Within Life :: FGO AAAs (1): Einstein-Rosen Bridge |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|