updated chat example
fixed broadcast error