stats socket, with support for indicating subscription states