func GetStream() *Stream {
	once.Do(func() {
		str = &Stream{
			authenticated: atomic.Value{},
			handlers:      sync.Map{},
			base:          base,
		}

		str.authenticated.Store(false)
		str.closed.Store(false)
	})

	return str
}
// GetStream returns the singleton Alpaca stream structure.
GetStream returns the singleton Alpaca stream structure.
// GetStream returns the singleton Alpaca stream structure .
func GetStream() *Stream {
	once.Do(func() {
		str = &Stream{
			authenticated: atomic.Value{},
			handlers:      sync.Map{},
			base:          base,
		}
		str.authenticated.Store(false)
		str.closed.Store(false)
	})
	return str
}
func GetStream ( ) * Stream { once . Do ( func ( ) { str = & Stream { authenticated : atomic . Value { } , handlers : sync . Map { } , base : base , } str . authenticated . Store ( false ) str . closed . Store ( false ) } ) return str }
GetStream returns the singleton Alpaca stream structure.
GetStream returns the singleton Alpaca stream structure .