(20241231) CORS on SocketIO.

This commit is contained in:
2024-12-31 10:55:17 +00:00
parent 2ac975614d
commit cf9221f2a4
4 changed files with 36 additions and 6 deletions
+4 -1
View File
@@ -43,7 +43,7 @@ import os
# My utils:
from utils_v2.string import json
from utils_v2.system import files
from utils_v2.queue.kafka import ProducerKafka, ConsumerKafka
from utils_v2.queue.kafka.controllers.kafka import ProducerKafka, ConsumerKafka
# To make HTTP calls:
import httpx
@@ -134,6 +134,9 @@ def flush_kafka():
kafka_producer.flush()
# ---------------------------------------------------------------------------------------------------------------------
def to_kafka(tick: TradingTick) -> bool:
global tick_count