News for hackers. Stuff that matters.
Re:MMO xkcd WebSockets fixed by PubNub by danielweber on Thursday September 27, 2012 @03:01PM (#4582218)
Okay, I could probably answer this if I read all the old WebSockets posts, but how can you have people communicate without a server?
Re:MMO xkcd WebSockets fixed by PubNub by elisee on Thursday September 27, 2012 @03:07PM (#4582240)
From what I understand, PubNub provides servers around the world who take care of the heavy lifting and all you have to do is deal with publishing / subscribing messages.

So there are servers, you just don't run any yourself and it is all abstracted away by their API.

What they did, in this case, is mock the WebSocket interface (so that they didn't need to rewrite the whole original app) and make it use the PubNub API internally. See https://github.com/pubnub/pubnub-xkcd/blob/master/websocket....

Re:MMO xkcd WebSockets fixed by PubNub by pubnub on Thursday September 27, 2012 @03:30PM (#4582394)
Excellent investigation! You are correct thank you for the explanation here on this thread. Check it out we also needed to remove the server.js file too. No more node needed now. Enjoy!
Re:MMO xkcd WebSockets fixed by PubNub by kanaka on Thursday September 27, 2012 @03:06PM (#4582239)
There are servers, you just don't have to run your own. PubNub is a commercial company with a messaging platform that they have integrated this with.