Skip to content

Instantly share code, notes, and snippets.

@ProbablePrime
Last active October 31, 2016 02:47
Show Gist options
  • Save ProbablePrime/506f0a626757904c588a to your computer and use it in GitHub Desktop.
Save ProbablePrime/506f0a626757904c588a to your computer and use it in GitHub Desktop.
Example Beam.pro Events

Sample Beam.pro liveloading events

Follow

On The user level - "user:000:followed"

{"following":true,"channel":{"id":000,...usual channel object}}

Channel Level - "channel:50772:followed"

{"following":true,"user":{"username":"ProbablePrime" ... a usual user object}}

Unfollow

User Level - "user:000:followed"

{"following":false,"channel":{"id":000,...usual channel object}}

Channel Level - "channel:50772:followed"

{"following":false,"user":{"username":"ProbablePrime" ... a usual user object}}

Subscription - "channel:0000:subscribed"

This is unconfirmed, I reversed engineered it from code.

{"user":{"username":"ProbablePrime"}}

Resubscribed - "channel:0000:resubscribed"

{"since":<when they first subscribed, "until":<when this expires>, "user":{"username":"ProbablePrime"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment