Switch branches/tags
Nothing to show
Find file History
Pull request Compare This branch is 22 commits ahead of tjfontaine:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
main.js
package.json
purple-config-schema.yaml
sample-config.yaml

README.md

Running

 $ npm install
 $ cd appservice
 $ npm install
 <Edit config file>
 $ node main.js -r -u "http://appservice.endpoint.url" -c <config_file>
 <Dump registration on HS>
 $ node main -c <config_file> -p PORT

Adding accounts:

  • Edit the config file.

Architecture

                   config[Account]
                        |
                        V
 Matrix ---ASAPI---> AppService ---libpurple--> Remote Network
Flows:
  Matrix-initiated:
   - Matrix user invites `@network_$USERNAME:domain` to a room.
   - Matrix user says something in this room.
   - AppService forwards message to remote user.
   Replies:
    - Remote user responds to message.
    - AppService forwards to all matrix rooms who have the @network_ user in them.

  Remote network initiated:
   - TODO
   Replies:
    - TODO

Shortcomings:

  • Account is global not per user!
  • Means you can't have >1 matrix user talk to remote user! Doesn't know which room to respond to.