[Realtime] Refactor things on realtime.
Merge pull request #1036 from akbargumbira/develop

[Realtime] Refactor things on realtime.