chat demo updated to work with crossbar2