Slide 6
Slide 6 text
Web Sockets
Advantage
• Real-time communication: WebSockets allow for instant, two-way communication. Once the client scans the QR code, the
server can immediately notify the client of the authentication result.
• Low latency: Since the connection is always open, responses are instantaneous.
• E
ffi
cient: After the initial handshake, WebSockets use less overhead compared to HTTP polling.
Disadvantage
• Complexity: Requires more setup and resources to manage open connections.
• Not ideal for simple use cases: For scenarios where continuous bi-directional communication isn’t needed, WebSockets
may be overkill.