Using network stream to send data from publisher