Skip to content

Implement notifications #37

Description

@Benjozork

Self-explanatory. Could work via a WebSocket connection established at page load.

A possible architecture would be this :

  • Notification object, source: NotificationSource, target: User / targets: Set<User>
  • NotificationSource interface for Resource objects that can fire notifications, i.e. articles, comments ...
  • notify() function on User that stores the notification in DB and finds an open WS connection to notify connected clients for the particular user(s) (notifications sent to multiple users might exist in the future)
  • Fetch all notifications from DB on WS open ...

WIP. More details to be added, esp. in regard to supporting Actions i.e. REPLY that would fire notifications automatically when the Actions framework is implemented.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions