-
Notifications
You must be signed in to change notification settings - Fork 42
Bridges
-
Follow instructions for setting up your bridge. This should produce a
registration.yamlfile.-
Add the prefix "bridge_" to the
as_token. Example:as_token: bridge_1m9jt3xt6qdb4... -
The bridge
idand thesender_localparthave to match at this time.
The bridge user and room will be created based on the
idautomatically (e.g.!id:localhost). It is also okay if these already exist. -
-
Convert the
registration.yamltoregistration.jsonusing a yaml2json converter such asapt-get install reserializeor a website.reserialize yaml2json registration.yaml > registration.json -
Open the console to enter the following command:
bridge set /path/to/registration.jsonIf the bridge has already been registered before then the prior configuration will be overwritten. Use
bridge addto error instead of overwriting.The console command
bridgewill list all bridges by ID.bridge <id>will confirm the configuration for the bridge.Registrations and/or updates will take effect immediately without restarting the server or reloading
m_bridgebridge del <id>will redact the registration and disconnect the bridge.