added implementation to the real-time api