autoplay and sockets