Index's Recent Forum Activity

  • You still hiding JohnnySheffield ?

  • Joannesalfa http://www.mediafire.com/download/3se67 ... client.rar Noncentz705

    That is the last version that I had downloaded. Should be the 1.1 version.

  • Thanks. That's pretty awesome! =]

  • Any chance for a demo?

  • Index

    No, definitely not the time, sorry.

    No worries =].

  • linkaevolution

    It's an old project, not supported and developed anymore.

    I wonder if I can continue this project in C2. Since I had planned something similar anyway.

    Would you be interested in helping out in the future if I get something going- septeven?

  • I love you, Rex.

  • Oh. I was pretty sad there wasn't something like this the other day- and then ... here it is. I'll have to try this out in a little. =] Thx.

  • At first I thought you were going to say you removed Node-Webkit (i.e desktop functionality) and replaced it with something else. Crisis averted xD.

  • ^ Finally figured it out after looking at your example and staring at it.

    You cannot leave namespace blank or the program acts normal but doesn't actually do anything. It will even show relatively the same debug dialog. It will connect very similar. However, it wont receive or send events properly. Nor will it actually "connect" it will just "open" even though it triggers a "connect" on the server.

    To remedy all this you NEED to put "/" in namespace to connect to the default namespace OR likely end the URL with a slash such as , scirra.com/ and NOT scirra.com.

    Hope nobody else runs into this for as long as I did. Just happy it's finally fixed.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • (Solved this issue in the next post, so skip this)

    So I'm not sure why but when I use

    <html>
    Blank Page *shrugs*
    
    <script src="/socket.io/socket.io.js"></script>
    <script>
      var socket = io('(omitted)');
      socket.emit('my other event', { my: 'data' });
      socket.on('news', function (data) {
        console.log(data);
        socket.emit('my other event', { my: 'data' });
      });
    </script>
    
    </html>
    [/code:sstvnrqd]
    
    It works. Yet, when I try to do the same thing in construct 2 it doesn't work. I get multiple (usually two) connection events firing. The plugin event "open" fires but "connect" never does even when the server claims I've joined a room etc. Events don't transfer between server and client... (neither wildcard or messages in either direction).
    
    yet, once again that HTML works- including transferring events with that HTML and getting an event as a response. Just not with the Socket.IO plugin going to the same URL and everything.
    
    Does it have maybe something to do with this line in runtime.js?
    
    [code:sstvnrqd]
    this.manager = window["io"]["Manager"](url, this["options"]);
    [/code:sstvnrqd]
    
    Does 
    [code:sstvnrqd]
    window["io"]["Manager"](url); 
    [/code:sstvnrqd]
    
    perform the same way as?
    [code:sstvnrqd]
    var socket = io(url);
    [/code:sstvnrqd]
Index's avatar

Index

Member since 29 Dec, 2011

None one is following Index yet!

Trophy Case

  • 12-Year Club

Progress

12/44
How to earn trophies