[How do i] Setup a simple server or so

0 favourites
From the Asset Store
Create your own wss server and ws server with ssl and without ssl.
  • Ok i managed it to get the server running, and emitting data through.

    And making an Automatch system for 2 players.

    but now i have a problem, everytime im emitting a string form my text box through, then i get it back the first time right.

    Second time x 2

    3rd time x3

    4th time x 4...

    I have no idea why. Heres a part from my server code in case something is wrong with that:

    socket.on("message", function(data){

              socket.on("chatmessage", function(data2){

                   io.sockets.in(data).send("chatmessage," + data2);


              socket.on("GameSettings", function(data2){

                   io.sockets.in(data).send("GameSettings," + data2);



    I know the post is old, but better keeping this alive then always making a new thread for almost the same topic...

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)