Gamend.Matchmaking.Broadcast (gamend_core v1.0.1192)

Copy Markdown View Source

Broadcasts matchmaking events to users.

Core publishes on the matchmaking:user:<id> PubSub topic; the user channel subscribes on join and forwards to the client (same shape as the tournament events). Core never references the web endpoint directly.

Summary

Functions

Notifies every matched user that a lobby has been found.

Functions

match_found(tickets, lobby_id)

@spec match_found([map()], Ecto.UUID.t()) :: :ok

Notifies every matched user that a lobby has been found.