SenitCorp / bugtracker

Issue Tracker repo for Senit
1 stars 0 forks source link

Refactor Chat System #167

Closed jayrulez closed 5 years ago

jayrulez commented 5 years ago

The chat system is essentially the same system as it was for inception.

There are many opportunities for improvement that will improve performance and reliability.

Rewrite the chat system while considering those improvements.

Some notable changes will include:

Chat messages are sent over an http endpoint instead of a websocket. Websocket will only be used for receiving messages.

Implement functionality to get messages since X timestamp. This will allow client to pull only messages not in current view which will improve performance since clients that already cached messages will no longer need to pull a full list of messages for a chat.

jayrulez commented 5 years ago

These have all been implemented now.

However, there are other scenarios to look at for further improvements.

  1. Pulling older messages since a particular message id/timestamp. This makes it convenient for pulling a set of older messages on devices where messages were not already cached.
jayrulez commented 5 years ago

A new endpoint was added for handling this.