mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
11 lines
176 B
Crystal
11 lines
176 B
Crystal
require "kemal"
|
|
|
|
ws "/" do |socket|
|
|
socket.send "Hello from Kemal!"
|
|
|
|
socket.on_message do |message|
|
|
socket.send "Echo back from server #{message}"
|
|
end
|
|
end
|
|
|
|
Kemal.run
|