Socket.io issues

I'm having some weird issues connecting to the join game socket.io servers. I've tried 2 completely different socket.io libraries, and the both give ArrayIndexOutOfBoundsExceptions when I try to connect to koalabeast's servers. It seems like there is actually something broken with tagpro's servers! I might have to try implementing a basic socket.io parser myself, maybe one that can cope with whatever's wrong with tagpro's server.

Posted Dec 12, 2013, 11:25 PM UTC

36
roflmaoshizmpMain Developer•

Servers were being updated yesterday, might have been that.

1
nerdwaller•

Any progress on this?

1
JJJollyjimOPMain Developer•

I've been taking a break from this project, but while working on a different TagPro-related project I've found the answer.


You have to first request the server homepage which will set a session cookie. The socket.io handshake needs this cookie to be sent with the request. I'm too busy atm to work this, but let me know if you need more help fixing this bug.

1
nerdwaller•

Thanks JJ, I'm not terribly familiar with Socket.IO, but looks like the resources are pretty solid.

As a side note, steppin set up a new server for us to use - I'll add it into the server list for if/when you find time to work on this again.

1
nerdwaller•

To avoid me rewriting stuff that's already done, would you mind sharing what you have on that?

1
JJJollyjimOPMain Developer•

Thanks mate. The other project is in CoffeeScript, but I'll find the code and send it later today.

1