changed how pub/sub is working for messages and rooms