Blink Realtime
Push live events to your Blink app's connected clients via WebSocket pub/sub using blink realtime publish.
App clients subscribed to a channel instantly receive the event.
Setup (one-time)
blink secrets set BLINK_PROJECT_ID proj_xxx
Get your project ID from blink.new → your project → Settings.
Trigger a UI refresh
blink realtime publish $BLINK_PROJECT_ID "updates" '{"type":"refresh"}'
Push a new data event
blink realtime publish $BLINK_PROJECT_ID "orders" '{"type":"new_order","id":"ord_123","total":49.99}'
Send a notification to all connected users
blink realtime publish $BLINK_PROJECT_ID "notifications" '{"message":"System maintenance in 5 minutes","level":"warning"}'
Broadcast agent status
blink realtime publish $BLINK_PROJECT_ID "agent-status" '{"status":"completed","task":"weekly report","result":"sent to 142 users"}'
Command signature
blink realtime publish <project_id> <channel> <json_data>
project_id— your Blink project ID (from$BLINK_PROJECT_ID)channel— channel name (app clients subscribe to this)json_data— JSON payload to broadcast