The main slidge entrypoint will automatically detect which classes have been
subclassed and use them automagically.
Just subclass away, and launch your legacy module with
JID local parts to legacy IDs#
You probably also want to subclass
LegacyBookmarks to define how
JID local parts
map to legacy user or contact IDs.
Defining which local parts map to proper valid user legacy IDs is crucial
to discriminate between JIDs that map to a
those that map to a
You should override
in your custom
classes, and raise an appropriate
when called with an invalid argument.
Fetching info from the legacy service#
you will be able
to define how XMPP Entities update information about
themselves, such as their user-facing name and the Avatar that
This is done by overriding
in which you should raise an
in case their
attribute is not valid.