Brr window set on_message

I’m sure I’m missing something really obvious here:

How do we set the on_message handler on window object w/ Brr ?

I’m looking at Window (brr.Brr.Window) and I can’t figure it out.

Off the top of my head: Brr.Ev.listen Brr_io.Message.Ev.message f (Brr.Window.as_target w)?

Cheers,
Nicolas

2 Likes