1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-15 07:22:16 +03:00
Commit Graph

14 Commits

Author SHA1 Message Date
Kegan Dougal
54a5c38b66 Do not retry requests which 40[0/1/3]. Set 'errcode' on MatrixErrors 2015-07-29 10:30:07 +01:00
Kegan Dougal
3c4bda8580 Add MatrixScheduler.removeEventFromQueue/getQueueForEvent and QUEUED state.
This is to allow the UI to show "queued" on events as well as allow the
removal of events in the queue.
2015-06-26 09:52:52 +01:00
Kegan Dougal
320bbec737 Add MatrixScheduler.getQueue to allow items in the queue to be modified. 2015-06-25 18:00:07 +01:00
Kegan Dougal
57914969b8 Add MatrixClient.resendEvent to manually resend an event that was not sent.
Bundle txnId as MatrixEvent._txnId instead of exposing it to every place that
happens to need it (since it's so tightly coupled with MatrixEvent)
2015-06-23 14:08:02 +01:00
Kegan Dougal
bc0e2ad504 Sync room state when joining via client.joinRoom
Does not currently sync state when another device joins.
Update node example app to refresh room list.
2015-06-22 17:50:49 +01:00
Kegan Dougal
ad70b3d434 Don't set NOT_SENT in the scheduler; the MatrixClient is responsible for this. 2015-06-19 17:19:48 +01:00
Kegan Dougal
756fe4ddcb Implement MatrixScheduler. 2015-06-19 16:53:28 +01:00
Kegan Dougal
2f78ceb6fc Design the API for the scheduler and hook MatrixClient up to it.
Scheduler itself still needs internal impl.
2015-06-19 15:50:05 +01:00
Kegan Dougal
1e3162128a Shelve scheduler queue work. Add processFn. 2015-06-18 13:56:46 +01:00
Kegan Dougal
7e12ea4273 Start gluing MatrixClient and MatrixScheduler. 2015-06-18 12:07:18 +01:00
Kegan Dougal
18a3ce415c Add _queues to MatrixScheduler. 2015-06-18 11:49:34 +01:00
Kegan Dougal
ca414d1611 Implement rate limiting in the default retry algorithm. 2015-06-18 11:28:17 +01:00
Kegan Dougal
ba56f5f621 Implement MatrixScheduler.
Formed of two parts: the retry and queuing functions. Use sensible defaults.
2015-06-18 11:11:07 +01:00
Kegan Dougal
4810d04257 Add stub MatrixScheduler. 2015-06-18 10:07:44 +01:00