refactor floating_domain to structured object-only payload
This commit is contained in:
@@ -24,7 +24,11 @@ class StreamFormatter:
|
||||
|
||||
async for event_type, data in event_stream:
|
||||
if event_type == "floating_domain":
|
||||
yield WsFloatingDomain(request_id=self.request_id, domain=str(data))
|
||||
if isinstance(data, dict):
|
||||
yield WsFloatingDomain(
|
||||
request_id=self.request_id,
|
||||
domain=data,
|
||||
)
|
||||
continue
|
||||
|
||||
if event_type != "token":
|
||||
|
||||
Reference in New Issue
Block a user