You are working on a real-time chat application using Angular. The application enables users to send messages to each other. Its observed that application is sending too many requests to the server as users type out their messages. How can you improve the server load caused by frequent message updates in real-time?
Delay the message sending by a fixed time after each keystroke
Implement debouncing to delay the message sending until the user pauses typing
Disable the ability to type for a short period after each keystroke
Use web sockets instead of HTTP requests to optimize real-time updates.
To get all Infosys Certified Angular Expert Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee