WebSocket APIの使い方

https://www.sitepoint.com/real-time-apps-websockets-server-sent-events/