code: function HookBackendEvent (adapter, backend, socket) {
            
      // Events successful process by tracker adapter
      function EventAisData (aismsg, aisnmea){
          adapter.Debug (9, "devid=%s aistype=%d nmea=%s", aismsg.mmsi, aismsg.aistype, aisnmea);
          adapter.BroadcastAisData (aismsg, aisnmea);
      };
      
      backend.event.on("ais-data"  ,EventAisData);	
  }
docs: hook user event handler to receive a copy of messages