Only send events to clients who need it
- User events (star, rating, plays) only sent to same user - Don't send to the client (browser window) that originated the event
This commit is contained in:
@@ -16,7 +16,7 @@ func newDiode(ctx context.Context, size int, alerter diodes.Alerter) *diode {
|
||||
}
|
||||
}
|
||||
|
||||
func (d *diode) set(data message) {
|
||||
func (d *diode) put(data message) {
|
||||
d.d.Set(diodes.GenericDataType(&data))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user