comcode-org / hackmud_chat_web

ajax web client for hackmud
Other
8 stars 9 forks source link

Update for new chat API changes #107

Closed hackmud-dtr closed 5 years ago

hackmud-dtr commented 5 years ago

Fixes #106

Ensure that the initial sync call has a populated after time set (5 minutes in the past relative to computer's clock) to allow for initial population of data. Additionally, ensure that after:'last' will never get stuck for users without much activity by requiring that the date used never be more than 5 minutes in the past. Finally, add a little more padding for before: and after: calls (100ms rather than 1ms) to better handle chats inserted in the db out-of-order.

seanmakesgames commented 5 years ago

Looks good. :) Thanks!!