Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Do not send empty type when its not apropriate

Gabe Kangas6e2b2b2bd09b
diff --git a/core/chat/events/events.go b/core/chat/events/events.go
index bda8b21d22..18fdfee6be 100644
--- a/core/chat/events/events.go
+++ b/core/chat/events/events.go
@@ -27,7 +27,7 @@ type OutboundEvent interface {
// Event is any kind of event. A type is required to be specified.
type Event struct {
- Type EventType `json:"type"`
+ Type EventType `json:"type,omitempty"`
Id string `json:"id"`
Timestamp time.Time `json:"timestamp"`
}