streaming API for peersim