ByteDance Interview Question

Why did you use WebSocket rather than server-sent events in your project?