Files
chore/events/broadcaster.py
2025-12-02 17:02:20 -05:00

11 lines
256 B
Python

import time
from threading import Thread
class Broadcaster(Thread):
"""Background thread sending periodic notifications."""
def run(self):
while True:
#push event to all users
time.sleep(5) # Send every 5 seconds