Added streamType argument to connect method to alter the stream hint used