This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Description
🐛 Bug
WebSocket connection is interrupted when trying to display the real-time messages on Labgraph Monitor (frontend)
To Reproduce
Steps to reproduce the behavior:
- python3 labgraph/examples/labgraph_monitor_example.py
cd extensions/prototypes/labgraph_monitor
- yarn start
- Click on RandomMessage Node
Demo

Expected behavior
After a few seconds the real-time data freezes, check the terminal where the WebSocket is running it will display the following error:
- WS_SERVER_NODE: Raised an exception: RuntimeError("Task <Task pending name='Task-162949' coro=<WSAPIServerNode.ws_server_publisher() running at /Users/fatimazahra.chriha/Desktop/mlh/spring2022/labgraph/labgraph/websockets/ws_server/ws_api_node_server.py:125>> got Future <Future pending> attached to a different loop")

Environment
- LabGraph Version:
- OS: Mac
- Python version: Python 3.8.13