Overview
Broadcast mode lets you share your LiveCodes session in real-time with viewers:- Live coding - Viewers see your code as you type
- Real-time updates - Changes appear instantly
- One-to-many - Broadcast to unlimited viewers
- No setup - Works in any browser
Perfect for:
- Live coding tutorials
- Workshops and training
- Pair programming demos
- Code reviews
- Teaching and presentations
Starting a Broadcast
Broadcast Options
Source Code Broadcast
- Enabled
- Disabled
Viewers see your source code:
- Original markup, style, script
- Can edit and experiment
- Full interactive playground
Server Configuration
Default server: LiveCodes provides a free broadcast server Custom server: You can run your own broadcast server:See the broadcast server repository to host your own.
Viewing a Broadcast
Join someone’s broadcast:Viewer Experience
Viewers can:- Watch live coding - See every keystroke
- View result - See the app running
- Copy code - Copy snippets to their own playground
- Fork project - Create their own copy to experiment
Broadcast States
Not Broadcasting
Normal editing modePrivate session
Broadcasting
Live broadcast activeChanges sent to viewers
Viewing
Watching someone else’s broadcastRead-only mode
Broadcast Updates
What gets broadcast:- Code Changes
- Configuration
- Result Page
- Markup edits
- Style updates
- Script modifications
- Real-time as you type
Updates are sent efficiently using differential sync - only changes are transmitted.
Stopping a Broadcast
Stopping the broadcast doesn’t close viewers’ tabs, but they won’t receive new updates.
Use Cases
Live Coding Tutorial
Workshop/Training
Code Review
Pair Programming Demo
Best Practices
Test Before Going Live
- Test broadcast with a friend first
- Verify viewer URL works
- Check that updates appear
Prepare Your Code
- Start with working code
- Have a plan for what to demonstrate
- Keep external dependencies minimal
Communicate Clearly
- Explain what you’re doing
- Use voice chat or video alongside broadcast
- Pause to let viewers catch up
Broadcast Server
Default Server
LiveCodes provides a free broadcast server:- No setup required
- Globally distributed
- No registration needed
- Public channels
Self-Hosted Server
Run your own broadcast server:- Full control
- Private channels
- Custom authentication
- Higher reliability
- Better performance
Technical Details
How It Works
Server
- Receives updates from broadcaster
- Forwards to all connected viewers
- Manages channel lifecycle
Performance
- Latency: ~100-500ms (depending on network)
- Throughput: Handles 1000+ concurrent viewers
- Bandwidth: Minimal (only diffs sent)
Security
- Channels are temporary and ephemeral
- No authentication required
- Anyone with channel URL can view
- Don’t broadcast sensitive code
Limitations
Troubleshooting
Broadcast won't start
Broadcast won't start
- Check internet connection
- Verify server URL is correct
- Try default server
- Check browser console for errors
Viewers not seeing updates
Viewers not seeing updates
- Verify viewers have correct URL
- Check broadcast is still active
- Reload viewer page
- Check network connectivity
Lag or delay
Lag or delay
- Normal latency: 100-500ms
- Check internet speed
- Reduce typing speed slightly
- Try self-hosted server closer to viewers
Channel URL not working
Channel URL not working
- Ensure broadcast is active
- Check URL was copied correctly
- Try generating new channel
Alternatives
If broadcast mode doesn’t fit your needs:- Screen sharing: Use Zoom, Google Meet, etc.
- Share URLs: Share project links for async viewing
- Export & Share: Export code and share files
- Embed: Embed playgrounds in your site