added rooms to api, implemented WS for messages