Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/go-sdk-chat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"github.com/livekit/protocol": patch
---

Go SDK support for chat messages.
9 changes: 9 additions & 0 deletions livekit/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,3 +319,12 @@ func applyMapDiff(dst *map[string]string, diff map[string]string) {
}
*dst = m
}

// ToProto implements DataPacket in Go SDK.
func (p *ChatMessage) ToProto() *DataPacket {
return &DataPacket{
Value: &DataPacket_ChatMessage{
ChatMessage: p,
},
}
}
Loading