Update app.py
Browse files
app.py
CHANGED
@@ -162,5 +162,6 @@ async def send_heartbeat(websocket):
|
|
162 |
await asyncio.sleep(10) # Send heartbeat every 10 seconds
|
163 |
|
164 |
# Create an event loop and run the coroutine until completion
|
165 |
-
|
166 |
-
await init_sma_ws()
|
|
|
|
162 |
await asyncio.sleep(10) # Send heartbeat every 10 seconds
|
163 |
|
164 |
# Create an event loop and run the coroutine until completion
|
165 |
+
asyncio.run(init_sma_ws())
|
166 |
+
#await init_sma_ws()
|
167 |
+
# Run the event loop and execute the asynchronous main function
|