In stream auto connection

This implements #257.