Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block m-j-w

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
m-j-w / server_sent_events.jl
Created Apr 22, 2017
HTTP5 Server Sent Event in Julia
View server_sent_events.jl
# Example adapted from
using HttpServer
hdr = Dict{AbstractString,AbstractString}(
[ "Content-Type" => "text/event-stream"
, "Cache-Control" => "no-cache"
, "Connection" => "keep-alive" ] )
idx = raw"""
<html><body><h1>Getting server updates</h1><div id="result"></div><script>
You can’t perform that action at this time.