Hub.publish

You're seeing just the function publish, go back to Hub module for more information.
Link to this function

publish(channel_name, term)

Specs

publish(String.t(), any()) :: non_neg_integer()

Publishes the term to all subscribers that matches it Returns the number of subscribers that got the message