PubSub silently drops connection right after getting any message

I wonder if it’s a problem with the game engine instead then.

In my example, you can change pubsub.on('close', function() { to pubsub.on('close', function(code, reason) {

And log the code/reason information checking against