Add support for publishing events to single sockets.