22 lines
488 B
Python
22 lines
488 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
Test COB Dashboard with Enhanced WebSocket
|
|
"""
|
|
|
|
import asyncio
|
|
import logging
|
|
from web.cob_realtime_dashboard import COBDashboardServer
|
|
|
|
# Setup logging
|
|
logging.basicConfig(
|
|
level=logging.INFO,
|
|
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
|
|
)
|
|
|
|
async def main():
|
|
"""Test the COB dashboard"""
|
|
dashboard = COBDashboardServer(host='localhost', port=8053)
|
|
await dashboard.start()
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(main()) |