mirror of
https://github.com/iv-org/invidious.git
synced 2025-11-03 05:38:30 -06:00
Commit the whole ./lib/ folder which stores the Crystal dependencies. This has a few benefits: - Allows to build the project without a connection to the Internet to retrieve dependencies. - Makes the project resistant against dependency re-tags which might include malicious code.
12 lines
176 B
Crystal
12 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
|