Convert the three interactive markers (yellow click, purple vehicle, blue draggable pin) from per-client state to cross-client sync: - Yellow click marker: PubSub broadcast on map click, all clients subscribe and update signal-backed marker position - Purple vehicle marker: single shared goroutine (sync.Once + RWMutex) replaces per-client random movement so all clients see identical path - Blue draggable pin: extra hidden input triggers server action on dragend, which publishes new position via PubSub to all clients
5.2 KiB
5.2 KiB