How do you write a link event using the ClientAPI?

I suspect I’m missing something trivial, but I cannot see any way of writing link events via the client API.

Can anyone point me in the right direction?

Thanks,

Michael

A linked event is just a normal event where the event type is “$>” and the body of the event is in the format “{0}@{1}” where {0} is the event number and the {1} is the stream id that you would like to link to.

Great, thank you. Would have taken me a while to guess that.