Skip to content

Example | console

Tim Smith edited this page Sep 18, 2017 · 2 revisions

Overview

This example integration:

  • sets callbacks for notification events
  • registers for topics using the settings in its config object
  • stores user data in the cache
  • uses templates to format user data when notifications arrive
  • writes formatted event data to the console window

Project Structure

This example config can be found at src/config/example-console.

  • config.json This file contains the configuration for the example. It makes use of the subscriptions property to determine the topics to be registered.
  • defs.js A very basic definitions example. Used by the templating process to demonstrate calling a function with data in a template.
  • integration.js The integration module. Contains all of the logic to accomplish the tasks listed in the overview above.
Clone this wiki locally