One of the issues I'm running into is the fact that someone may lose their connection to the node.js but not receive any notification that the connection was lost, nor a simple "reconnect now" box.

As far as I could tell this issue hasn't been posted, but maybe the answer is out of this module. Maybe we just need an additional nodejs for checking connection, then sending a growl notification with a link to reconnect to a service. Not quite sure the best place for this change.

Comments

Anonymous’s picture

i think there's work we can do in nodejs.js to improve the handling of this situation. will experiment a bit and report back.

markwk’s picture

Ok, cool. Yesterday I started hacking a bit on a "simple chat" field module: https://github.com/markwk/simplechat

Basically just a super simple chat that can be added to any content and uses a node.js backend, so no polling. It's just a field table and a chat table. And specific feature-built implementations will handle node access. It should be easy to back port to D6 too.

Would love to see this "Lost Connection Notification" in node.js side instead of specifically in the app.

gitesh.koli’s picture

Mark,

Not sure if you already fixed it but we used the connection Setup Handlers to deal with disconnected sessions.

  Drupal.Nodejs.connectionSetupHandlers.nodejs_abc_liveevent_notify = {
    disconnect:function (){
      LiveEvent.checkSocketConnection();
    },
    connect : function(){
    }
  };