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.

Verified Answer
Correct Option - b

To get all Infosys Certified Angular Expert Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in