foundation and real time chat