on message as string
put it into #div
end
on open
log "connection opened."
end
on close
log "connection closed."
end
on error
log "handle error here..."
end
end
https://hyperscript.org/features/event-source/
This is great find, very juicy, and would kill a few hot startups.