Install soket.io

0 favourites
  • 11 posts
From the Asset Store
Shark.io
$49 USD
Shark.io in the sea full of killer sharks, Sunday of life is the game. Who knows what is happening under the sea?
  • <img src="http://puu.sh/3CLj0.png" border="0">

    What's wrong?

    // I was using this tutorial

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You wrote npm install soket.io

    The problem is soket.io, you forgot an c.

    It should be: npm install socket.io

    Hope i could help

    -Conti

  • You wrote npm install soket.io

    The problem is soket.io, you forgot an c.

    It should be: npm install socket.io

    Hope i could help

    -Conti

    Oh man, I feel myself an idiot right now. Thank you very much.

  • Np, one of the first things you learn as a coder is that 80% of your mistakes are spelling mistakes, its true :)

  • Np, one of the first things you learn as a coder is that 80% of your mistakes are spelling mistakes, its true :)

    But I need your help anyways.

    I downloaded your .capx and launched. Then I clicked Connect and here we go:

    <img src="http://puu.sh/3Digd.png" border="0" />

    It can't connect, right?

  • as i can see there, it starts the server and a client connects.

    It also sends correct informations and invalid,

    info - handshake authorized

    ^^ shows you a client connected

    debug - websocket writing 1::

    ^^ shows you a empty message has been sand, not good.

    debug - websocket writing 3:::you,myusername

    ^^ perfekt, it sended two values, you and myusername!

    So no, it doesnt cant connect, but some messages are maybe emitted/send/broadcasted wrong, or invalid.

    Maybe you should check the server if it handles the messages correct.

  • as i can see there, it starts the server and a client connects.

    It also sends correct informations and invalid,

    info - handshake authorized

    ^^ shows you a client connected

    debug - websocket writing 1::

    ^^ shows you a empty message has been sand, not good.

    debug - websocket writing 3:::you,myusername

    ^^ perfekt, it sended two values, you and myusername!

    So no, it doesnt cant connect, but some messages are maybe emitted/send/broadcasted wrong, or invalid.

    Maybe you should check the server if it handles the messages correct.

    How can I connect to my public internet ip? Changing "localhost" to "95.73.64.177" did not help.

  • You need to open your ports in the firewall.

    http://windows.microsoft.com/en-us/windows7/open-a-port-in-windows-firewall

  • You need to open your ports in the firewall.

    http://windows.microsoft.com/en-us/windows7/open-a-port-in-windows-firewall

    I turned it off a long time ago. I do not think that the problem is in it.

    Maybe you can tell my your Skype nickname and we will continue this conservation there?

  • Im going to send your my skype name soon ok?

    Did you also checked the firewall of your router? Try to forward the port.

  • Im going to send your my skype name soon ok?

    Did you also checked the firewall of your router? Try to forward the port.

    Which ports should I open?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)