round 3
This commit is contained in:
10
events/broadcaster.py
Normal file
10
events/broadcaster.py
Normal file
@@ -0,0 +1,10 @@
|
||||
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
|
||||
Reference in New Issue
Block a user