     @set('loaded', true)
     if @get('liveDataset')
       @subscribeToWebsockets()
+  processNotifications: (notifications) ->
   subscribeToWebsockets: ->
     juggernaut = new Juggernaut
       host: Sensor.WEBSOCKET_IP

      messages = data.messages
      console.log "#{messages.length} messages downloaded"
      @processMessages(messages)
  processMessages: (messages) ->
    console.time "processing messages"
    @get('content').forEach (vehicle) ->

      @loadVehicles(data.units)
      @set('loadedVehicles',true)
      @getMessages()
      @getNotifications()
  loadVehicles: (vehicles) ->
    vehicles.forEach (vehicleData) =>
      vehicle = Sensor.Vehicle.create(vehicleData)
