On 13 March 2014 12:43, Juan Martin Runge <notifications@github.com> wrote:

> In heartbeats.js:
>
> > @@ -55,6 +55,12 @@ heartbeats.prototype.startMvcpServer = function(callback) {
> >      var result = self.server.initServer();
> >      result.then(function() {
> >          logger.info("MVCP server started");
> > +        self.server.on('reconnect', function(had_error) {
> > +            self.emit('melted-disconnected');
> > +        });
> > +        self.server.on('connected', function() {
> > +            self.emit('melted-connected');
> > +        });
>
> We will only listen to this events?
>


They are the ones that make most sense to show in the ui as the rest are
already logged.

melted-node emits 'response-timeout', 'command-error', 'command-response',
'start-connection', 'connected', 'disconnected', 'connection-error',
'reconnect', 'disconnect'.
Despite its name 'reconnect' means really that the connection with melted
was closed.