Fig 1One message, two eventsHover to scrub · arrows stepa chat message with newlines in it
Measured on Elysia 1.4.30 and 1.4.31 (Bun 1.4.1) and parsed with the WHATWG event-stream rules. On 1.4.30 the injected event: forged line overwrites the chat type, so the browser fires forged with 'a' and a second message with 'pwned', and the chat listener never fires. On 1.4.31 every line of the message gets its own data: line and one chat event arrives with the text intact.