Use generic cloneable stream

This should allow for wss:// to work