Adds join-room, leave-room, and stream-messages functions.