func (s *Stream) Unsubscribe(channel string) (err error) {
	if s.conn == nil {
		err = errors.New("not yet subscribed to any channel")
		return
	}

	if err = s.auth(); err != nil {
		return
	}

	s.handlers.Delete(channel)

	err = s.unsub(channel)

	return
}
// Unsubscribe the specified Polygon stream channel.
Unsubscribe the specified Polygon stream channel.
// Unsubscribe the specified Polygon stream channel .
func (s *Stream) Unsubscribe(channel string) (err error) {
	if s.conn == nil {
		err = errors.New("not yet subscribed to any channel")
		return
	}
	if err = s.auth(); err != nil {
		return
	}
	s.handlers.Delete(channel)
	err = s.unsub(channel)
	return
}
func ( s * Stream ) Unsubscribe ( channel string ) ( err error ) { if s . conn == nil { err = errors . New ( " " ) return } if err = s . auth ( ) ; err != nil { return } s . handlers . Delete ( channel ) err = s . unsub ( channel ) return }
Unsubscribe the specified Polygon stream channel.
Unsubscribe the specified Polygon stream channel .