5. xhr(Xml Http Request) streamingGETWebServerbrowserHTTPDataGETxhr streamingãServer-SentEventãWebServerbrowserDataDataDataUpgradeWebSocketServerbrowserDataDataDataWeb SocketDataDataData 6. How to send? (flush)print cgi.header("type"=>"text/event-streamâ, "Access-Control-Allow-Origin"=>"*â,"Access-Control-Allow-Methods"=>"GETâ)while1ifcurr != cache['pos'] â¦â¦ print"data: "+message+"Â¥nâSTDOUT.flushe
{{#tags}}- {{label}}
{{/tags}}