class

Hub

Inherits Reference < Object

Keeps the live WebSocket connections for each session and pushes updates. The point of confidentiality: every socket is sent its OWN public_view, so one broadcast produces a different payload per viewer — a participant only ever receives rankings they are allowed to see.

Constructors

Instance methods

broadcast(session : Session) : Nil

Send each connected participant the session as they are allowed to see it.

Source
join(code : String, id : String, socket : HTTP::WebSocket) : Nil
Source
leave(code : String, socket : HTTP::WebSocket) : Nil
Source