Flatten gadget hierarchy and purify WebRTC gadget
Instead of having chat_panel as a subgadget of chat_webrtc, both chat_panel and chat_webrtc are direct subgadgets of chat. Strip out all chat-related functions and variables from chat_webrtc, so that it can be used for non-chat-related purposes in the future. Bundle state variables into dictionaries for cross-gadget passing. Completely rewrite HTML structure to reflect a linear hierarchy. Fully document and augment existing URL query parameters. Replace all var declarations with let or const from ES6. Modify chat panel message_list and last_message_dict to prepare for multi-room messaging, coming soon.
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment