Skip to content

Instantly share code, notes, and snippets.

@faustinoaq
faustinoaq / reload.md
Last active December 6, 2017 03:15
Guide to reload client on public file changes.

Amber Reload

Reloading public files on Amber.

Requisites

You need Crystal and Amber::CMD installed

Steps

@faustinoaq
faustinoaq / stream.cr
Last active February 1, 2019 13:16
Try kemal/crystal stream
require "kemal"
get "/stream" do |env|
env.response.print "START"
env.response.flush
sleep 3
env.response.print "MIDDLE"
env.response.flush
sleep 5
env.response.print "END"