Putting socket.io on a Website

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stargroup100
    behanjc & me are <3'ers
    FFR Simfile Author
    FFR Music Producer
    • Jul 2006
    • 2051

    #1

    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?
    Rhythm Simulation Guide
    Comments, criticism, suggestions, contributions, etc. are all welcome.

    Piano Etude Demon Fire sheet music
  • Wayward Vagabond
    Confirmed Heartbreaker
    FFR Simfile Author
    • Jul 2012
    • 5866

    #2
    Re: Putting socket.io on a Website

    Use html code idk

    Comment

    • choof
      Banned
      FFR Simfile Author
      • Nov 2013
      • 8563

      #3
      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

      Comment

      • arcnmx
        nanodesu~
        • Jan 2013
        • 503

        #4
        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

        Comment

        Working...