To communicate with firebase server and use as chat service.