BNolet / RLC

GNU Affero General Public License v3.0
12 stars 12 forks source link

Pure Ajax RLC #265

Open Stjerneklar opened 8 years ago

Stjerneklar commented 8 years ago

Currently, RLC flirts with the reddit live api but does not use it exclusively when dealing with reddit live.

ideally, RLC should only use ajax to the reddit live api so we can handle things better and eventualy run RLC outside of a live room.

Places where reddit live api has been taken into use:

Loading initial messages (via call to room/.json )

Load old messages (via call to room/.json with additional parameters) New message recived (via websocket) Message was deleted (via websocket)

Places where reddit live api should be used instead of hacking native reddit live:

Send message (we kidnap the input field from native live and use it to send) #283 Delete comment (rlc-message is matched with li.liveupdate to find the message to delete) #279 Embed display in left panel (rlc-message is matched with li.liveupdate to find the embedded content) #279

Stjerneklar commented 8 years ago

https://www.reddit.com/dev/api#POST_api_live_{thread}_update

ConcernedHobbit commented 8 years ago

Moved to #283

ConcernedHobbit commented 8 years ago

Nevermind, read it wrong. Part of a bigger rewrite issue.