a2aproject / a2aproject/a2a-java

Improve SSE implemetnation for 0.3

Open
#841 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
490
Forks
172
Avg merge
1d 6h
Merged PRs (30d)
55

Description

A review on https://github.com/a2aproject/a2a-java/pull/820 showed that our SSE implementation might be too naive:

The current SSE implementation incorrectly dispatches each line starting with data: as a separate message. According to the SSE specification, multiple data: lines should be buffered and concatenated (with newlines) until an empty line is encountered, at which point the complete event should be dispatched. This will cause JSON parsing failures for any multi-line payloads.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.