New projects are notified to clients.

This commit is contained in:
Luka Vandervelden 2019-07-07 12:26:47 +02:00
parent 00badeaf63
commit 2bc415cf8d

View File

@ -88,6 +88,11 @@ ws "/socket" do |socket|
project.write! storage_directory
# FIXME: Only notify concerned users.
sockets.each &.send({
type: "list-projects",
projects: Project.all storage_directory
}.to_json)
sockets.each &.send({
type: "project",
project: project