Index's Forum Posts

  • 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.

  • (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]
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Alright. I'll try that.

    Also just bought spriter. So I might try using both this plugin and that plugin/program =].

    Edit: Cannot send any events at all. They just never appear on the server. So I'm trying to figure out the problem.

  • Ya, I know. I just still had it in the project and added yours in- which is why both were in at the same time.

    The plugin works fine over non-ssl. However, when I attempt to use Socket.IO 1.0 with SSL the client says "ERR_CONNECTION_CLOSED" and "Transport Error" - So I'll keep trying to figure it out and report back when I've found something.

    Edit: Figured it out. Accidentally removed server.listen(port); when changing the code over.

  • I used this plugin in the past.

    Adding that alongside yours - then using yours to connect to anything caused an error. Though maybe I modified the older one at some point so that could be an issue too *shrugs*