added chatPublic action, joinRoom and leftRoom events, and tests