Skip to content

Instantly share code, notes, and snippets.

@inetic
Last active November 11, 2016 09:00
Show Gist options
  • Save inetic/a59829251972e8bb70867da526afc400 to your computer and use it in GitHub Desktop.
Save inetic/a59829251972e8bb70867da526afc400 to your computer and use it in GitHub Desktop.
1. alice.create-channel |
2. Room::new_channel X |
3. Room::joined_channel |
----------------------------------------------------------------------------------------
4. | bob.search-channels
5. | Room::new_channel Y
6. | Ch::user_authenticated alice
----------------------------------------------------------------------------------------
7. | bob.join-channel Y
8. | Ch::user_joined bob
9. | Ch::joined
10. | Room::joined_channel
11. Ch::user_joined bob |
12. Ch::user_authenticated bob |
----------------------------------------------------------------------------------------
13. | bob.authorize alice
14. | Ch::user_authorized_by(alice by bob)
15. Ch::user_authorized_by(alice by bob) |
----------------------------------------------------------------------------------------
16. alice.authorize bob |
17. Ch::user_authorized_by(bob by alice) |
18. Ch::user_promoted bob |
19. | Ch::user_auhorized_by bob by alice
20. | Ch::user_promoted bob
21. | Ch::authorized
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment