add config emittor to socket and http