Skip to content

Change to use zset instead of hash#1

Open
jeffandersen wants to merge 1 commit into
gavinuhma:masterfrom
jeffandersen:master
Open

Change to use zset instead of hash#1
jeffandersen wants to merge 1 commit into
gavinuhma:masterfrom
jeffandersen:master

Conversation

@jeffandersen

Copy link
Copy Markdown

This pull request changes the data store from a hash to a zset. This allows us to store the timestamp of the messages along side the message values and subsequently order the list by that timestamp.

Other changes include:

  • Modifying the chat output to be a list
  • Clears the list when history is received (rather than appending)
  • Shows last 100 messages sorted by timestamp

@uit

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

Successfully merging this pull request may close these issues.

1 participant