Adding support for multi sockets on emit