Skip to content

Commit

Permalink
Room state synced also on the server (#20)
Browse files Browse the repository at this point in the history
* wip

* wip master snapshot on the server

* wip

* server saves and fetches the content; no client involved

* wip

* content sent correctly

* save interval read from config + deleted redundant code

* room-saved event sent to room sockets

* removed redundant code related to local saving

* version bump

* npm audit fix

* removed obsolete code

* fixed bug causing the app to not start

* queue name changed

* rabbit & human review suggestions
  • Loading branch information
hero101 authored Sep 23, 2024
1 parent ed7abba commit 9c39dcb
Show file tree
Hide file tree
Showing 51 changed files with 1,616 additions and 1,094 deletions.
11 changes: 3 additions & 8 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ settings:
# application level settings
application:
# queue
queue: ${QUEUE}:auth
queue: ${QUEUE}:alkemio-whiteboards
# MILLISECONDS wait time for a response after a request on the message queue
queue_response_timeout: ${QUEUE_RESPONSE_TIMEOUT}:10000
# the collaboration experience
Expand All @@ -42,12 +42,7 @@ settings:
# time is in SECONDS
contribution_window: ${CONTRIBUTION_WINDOW}:600
# SECONDS between auto saves
save_interval: ${AUTOSAVE_INTERVAL}:15
# SECONDS to wait for an acknowledgment that the save is successful, before retrying
save_timeout: ${AUTOSAVE_TIMEOUT}:20
# Amount of consecutive failed attempts to save before a collaborator is not picked for auto save
# This is useful when you want to avoid a lot of errors, or to mark a client not being reliable to save
save_consecutive_failed_attempts: ${SAVE_CONSECUTIVE_FAILED_ATTEMPTS}:5
save_interval: ${AUTOSAVE_INTERVAL}:10
# SECONDS of inactivity before a collaborator is made view-only
collaborator_inactivity: ${COLLABORATOR_INACTIVITY}:1800
# how often the inactivity timer is reset;
Expand All @@ -56,4 +51,4 @@ settings:
reset_collaborator_mode_debounce: ${INACTIVITY_DEBOUNCE}:1000
rest:
# the REST API
port: ${REST_PORT}:4005
port: ${REST_PORT}:4005
Loading

0 comments on commit 9c39dcb

Please sign in to comment.