Skip to content

Commit

Permalink
Provide the local feature a binding was made to
Browse files Browse the repository at this point in the history
  • Loading branch information
DerAndereAndi committed Apr 9, 2024
1 parent 97dcac9 commit 0cdc3e9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions spine/binding_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,12 @@ func (c *BindingManager) AddBinding(remoteDevice api.DeviceRemoteInterface, data
c.bindingEntries = append(c.bindingEntries, bindingEntry)

payload := api.EventPayload{
Ski: remoteDevice.Ski(),
EventType: api.EventTypeBindingChange,
ChangeType: api.ElementChangeAdd,
Data: data,
Feature: clientFeature,
Ski: remoteDevice.Ski(),
EventType: api.EventTypeBindingChange,
ChangeType: api.ElementChangeAdd,
Data: data,
Feature: clientFeature,
LocalFeature: serverFeature,
}
Events.Publish(payload)

Expand Down

0 comments on commit 0cdc3e9

Please sign in to comment.