Explain WebSockets and their use cases.

Mid JavaScript

Answer

WebSockets provide full-duplex communication over a single TCP connection.

Use cases include:

  • Real-time chat
  • Live stock updates
  • Gaming
  • Live dashboards

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice