leap and sockets integration