I am making a real time chat application. The following function is creating a new chat room in database. getChatRoomId basically createse a unique id for that
getChatRoomId