Skip to content

Commit e427e08

Browse files
author
Alan Christie
committed
feat: Better ESS properties in protobuf string
1 parent 9a74b41 commit e427e08

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/app.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,8 @@ async def on_message_for_websocket(
357357
if message_string[0] != "{":
358358
# The EventStream Service is permitted to append to the protobuf string
359359
# as long as it uses the '|' delimiter. Here qwe add offset and timestamp.
360-
message_string += (
361-
f"|{message_context.offset}|{message_context.timestamp}"
362-
)
360+
message_string += f"|offset: {message_context.offset}"
361+
message_string += f"|timestamp: {message_context.timestamp}"
363362
else:
364363
# The EventStream Service is permitted to append to the JSON string
365364
# as long as it uses keys with the prefix "ess_"

0 commit comments

Comments
 (0)