This section documents Metronome’s Application Programming Interface, still a good portion of it is backward compatible with Prosody so if you’re familiar with coding modules for it you should have no issues with it.

Although there’re some substantial differences (as of current tip) which I’ll list the most important of here and document in each section after:

  • The stanza routing API, in Metronome core.stanza_router has been deprecated in favor of mod_router that makes all routing functions fully evented and pluggable
  • MUC Pluggable Configuration, Metronome allows to fully extend the base muc module room configuration via events
  • Format for Authentication Providers still is pre-0.9 and requires using modules:add_item()