Added socket io funtionality