Background
Getting Started
Connect to our WebSocket API to receive real-time updates about a draft session.

WebSocket Connection

wss://deadlock.pub/ws/draft/[draftId]

Replace [draftId] with the ID of the draft you want to monitor.

Key Steps

  1. Connect to the WebSocket endpoint
  2. Request draft data with get_draft message
  3. Listen for real-time updates
  4. Handle draft completion or deletion
Available Data
Information you can display in your application
  • Teams
    Team names and status
  • Picks & Bans
    Selected and banned heroes
  • Turn Timer
    Current turn and remaining time
  • Draft Status
    Waiting, countdown, in progress, or completed
  • Countdown Timer
    Time until draft begins