gui model metadata view + backend json optimalization orjson

This commit is contained in:
David Brazda
2023-12-10 15:02:25 +01:00
parent 523905ece6
commit 232f32467e
38 changed files with 224 additions and 142 deletions

View File

@ -6,7 +6,7 @@ import secrets
from typing import Annotated
import os
import uvicorn
import json
import orjson
from datetime import datetime
from v2realbot.utils.utils import zoneNY
@ -103,7 +103,7 @@ async def websocket_endpoint(
'vwap': 123,
'updated': 123,
'index': 123}
await websocket.send_text(json.dumps(data))
await websocket.send_text(orjson.dumps(data))
except WebSocketDisconnect:
print("CLIENT DISCONNECTED for", runner_id)