require "kemal" # Matches GET "http://host:port/" get "/" do "Hello World!" end # Creates a WebSocket handler. # Matches "ws://host:port/socket" ws "/socket" do | socket | socket . send "Hello from Kemal!" end Kemal . run