use websockets for chart realtime update