Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[direct-messaging] Implement real-time message reception (Backend) #20

Open
7 tasks
TheFourthKaramazov opened this issue Feb 11, 2025 · 0 comments
Open
7 tasks
Milestone

Comments

@TheFourthKaramazov
Copy link
Owner

User Story (Backend)

As a user, I want the backend to handle and forward received direct messages in real time so that they appear instantly for the recipient.

Description

The backend should manage WebSocket connections and route incoming messages to the correct recipient in real time.

Tasks (Backend - FastAPI, WebSockets, SQLite/PostgreSQL)

  • Maintain an active WebSocket connection for authenticated users.
  • Receive direct messages and forward them to the intended recipient in real time.
  • Ensure that offline users have their messages stored for later retrieval.
  • Handle potential connection issues and retries.

Acceptance Criteria

  • Messages are forwarded instantly to the correct recipient if they are online.
  • Messages for offline users are stored and delivered when they reconnect.
  • WebSocket connections remain stable during active use.

Priority

High

Labels

  • backend
  • direct-messaging
  • real-time
  • core-feature
@TheFourthKaramazov TheFourthKaramazov added this to the Second Sprint milestone Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant