New projects are notified to clients.

master
Luka Vandervelden 2019-07-07 12:26:47 +02:00
parent 00badeaf63
commit 2bc415cf8d
1 changed files with 5 additions and 0 deletions

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