chat api for streaming apps