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
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