add realtime api for message, location