Roomserver output topic

This commit is contained in:
Neil Alexander 2021-11-03 14:36:27 +00:00
parent 15d44cd707
commit fd4c6a4fe5
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -111,7 +111,8 @@ func (r *Inputer) WriteOutputEvents(roomID string, updates []api.OutputEvent) er
var err error var err error
for _, update := range updates { for _, update := range updates {
msg := &nats.Msg{ msg := &nats.Msg{
Header: nats.Header{}, Subject: r.OutputRoomEventTopic,
Header: nats.Header{},
} }
msg.Header.Set(jetstream.RoomID, roomID) msg.Header.Set(jetstream.RoomID, roomID)
msg.Data, err = json.Marshal(update) msg.Data, err = json.Marshal(update)