// Update publishes a message to all other instances telling them to
// invoke their update callback
Update publishes a message to all other instances telling them to
invoke their update callback
// Update publishes a message to all other instances telling them to // invoke their update callback
func (w *Watcher) Update(channel string, identity string) error {
	ev, err := json.Marshal(&event{
		Id:      w.id,
		Payload: identity,
	})
	if err != nil {
		return err
	}
	return w.conn.Publish(channel, ev).Err()
}
func ( w * Watcher ) Update ( channel string , identity string ) error { ev , err := json . Marshal ( & event { Id : w . id , Payload : identity , } ) if err != nil { return err } return w . conn . Publish ( channel , ev ) . Err ( ) }
Update publishes a message to all other instances telling them to
invoke their update callback
Update publishes a message to all other instances telling them to invoke their update callback