parse_sse | R Documentation |
This functions converts Server-Sent Events to a R list. This a wrapper function for the lower level SSEparser R6 class. A single string can contain multiple SSEs.
parse_sse(event)
event |
A length 1 string containing a server sent event as specified in the HTML spec. |
An R list on which each element is an event
event <- "data: test\nevent: message\nid: 123\n\n"
parse_sse(event)
with_comment <- "data: test\n: comment\nevent: example\n\n"
parse_sse(with_comment)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.