Subscription for Recent activity and similar events? / How to get data reactively?

Hi!

Right now I am using this api to get recent posts like this:

func GetRecentPosts(client jschan.Client,  ctx context.Context, board_name string) {

	getRecentOptions := &jschan.GetManageRecentOptions{
		Board: board_name,
	}

	recent, err := client.GetManageRecent(ctx, getRecentOptions)
	if err != nil {
		fmt.Println(err)
		return
	  }
	  fmt.Printf("%+v", recent)


}

which is work correctly and give me the recent posts

I would like to know if there are a way to get this reactivly through go channels / subscription mechanism?

Something like this:

func SubscribeForRecent(session *jschan.session, listenChannel chan<- *jschan.GetManageRecentResponse, board_name string) (event.Subscription, error) {
	subscription, err := session.jschan.WatchRecent(&bind.WatchOpts{
		Board:   board_name, 
		Context: nil, // nil = no timeout
	}, listenChannel,
	)
	if err != nil {
		return nil, err
	}
	return subscription, err
}

...
func main(){
...
subscription, err := SubscribeForRecent(session, ch, board_name) // 
	if err != nil {
			log.Println(err)
		      }

EventLoop:
	for {
		select {
		case <-ctx.Done():
			{
				subscription.Unsubscribe()
				break EventLoop
			}
		case eventResult := <-ch:
			{
				fmt.Println("Recent post message: ", eventResult.Message)
				



				subscription.Unsubscribe()
				break EventLoop
			}
		}
	}
...

So it will allow to get subscribed to some updates from the board and get hooked reactivly