Pergunta de entrevista da empresa ByteDance

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