Closed gogins closed 2 years ago
I'm not sure how general-purpose this will be, there is a primitive wire format like this:
event:message
data:{0}
I'm not sure whether or how to deal with two newlines in the body of the data.
Solution: Use one data:
line, which contains any JSON-encoded data.
I think this is done. It works for the Csound message callback, so should work for other event sources.
Use server-sent events to implement: