element connects, joins room and fetches data from a specified key