'Handle a message trigger from the socket.'

def _on_msg_received(self):

    self.notifier.setEnabled(False)
    while 1:
        try:
            resp = self.socket.recv_pyobj(flags=zmq.NOBLOCK)
        except zmq.ZMQError:
            self.notifier.setEnabled(True)
            return
        if (not self.is_initialized):
            self.is_initialized = True
            debug_print(('Initialized    %s' % self.name))
            self.initialized.emit()
            self.timer.start(HEARTBEAT)
            continue
        resp['name'] = self.name
        self.received.emit(resp)
