mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
10 lines
165 B
Crystal
10 lines
165 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
|