Broadcast multiple topics at once

Hi, i have 2 models: album, photo and 2 type topics: album:#{id} and photo:#{id}

The user when open an album page joins to album:#{id} topic and when open a photo page joins to photo:#{id} topic.
In both page it is possible to vote the photos.

So when the user vote i have to broadcast the vote to both topics.

What is the best method for do this?


depends on how you receive the vote (in a controller or in a channel) both cases are documented here: