add socekt api of rooms