New projects are notified to clients.
This commit is contained in:
parent
00badeaf63
commit
2bc415cf8d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user