complete the streaming part of web demo