Questions tagged [publisher]

325 questions
0
votes
1 answer

How to publish avro message to a kafka topic using JMeter

I am trying to publish an Avro message to a Kafka topic using JMeter. I get the below error message: Caused by: javax.script.ScriptException: org.apache.kafka.common.errors.SerializationException: Error retrieving Avro schema"string" I used the…
shakti
  • 1
  • 1
0
votes
1 answer

Is it possible to run a publisher and a subscriber node using different ROS2 versions?

If I have a publisher node on one machine using ROS2 Humble and another subscriber node on a different machine using ROS2 Galactic, can they communicate? My question is not on how to establish the ROS communication between two machines, but whether…
mirhad
  • 5
  • 1
0
votes
0 answers

FlatMap doesnt send completion

I have two methods that chained by flatMap return requests .combineLatest() .flatMap({ response in Log.warning("\(response)") do { return try…
0
votes
0 answers

Msgpack error: msgpack::v1::insufficient_bytes

The publisher send a message. Sending takes place via the zeroqm library. The message is sent via msgpack. A created string file is packed and sent. The puplisher works great and sends out the messages. The Subscriber receives the data. Error occurs…
0
votes
1 answer

Sending an Image via MQTT

I am trying to send an image using MQTT. I have been able to send and receive other kinds of data using mqtt but for the image I am not receving anything. I am using base64 to convert image into bytes and then publish it to a broker. Then on the…
0
votes
1 answer

Swift Combine - Observe change of object's property publisher inside an array of objects

I have a following structure: class FileUploadCellViewModel { @Published var isUploaded: Bool = false } class FileUploadScreenViewModel: ObservableObject { @Published var viewModels: [FileUploadCellViewModel] = [] @Published var…
Kacper Cz
  • 504
  • 3
  • 17
0
votes
1 answer

How do you change the line spacing for selected text?

I have about 50 files done in Publisher 98 or 2000 that I am now opening in Publisher for Office 365. All the textboxes that contain the font Comic Sans MS (about 40 in each file) need to have the line spacing changed from 1sp to 1.3sp to get it to…
0
votes
1 answer

Best way to call GlobalActor function from NotificationCenter Publisher

I have a GlobalActor with some methods on it that I'm using throughout my app. I'd like to be able to call a function from the actor when I receive a Notification from NotificationCenter, but can't call async functions from sink. This is what I'm…
Plays2
  • 1,115
  • 4
  • 12
  • 23
0
votes
2 answers

Swift Combine collect values until last page is found or until time expires

So I want to collect values until I see the last page, but if the last page never comes I want to send what we have, given a time limit. I have a way of doing this but it seems rather wasteful. I'm going to be using this to make collections that may…
Yogurt
  • 2,913
  • 2
  • 32
  • 63
0
votes
1 answer

SwiftUI: calling objectWillChange.send() not updating child view

I have a rather complicated set of views nested in views. When I trigger a button action, I pass along an optional block through my viewModel class which calls objectWillChange.send() on that viewModel and I know that it's being triggered because…
Mercutio
  • 1,152
  • 1
  • 14
  • 33
0
votes
1 answer

SwiftUI - Update Model in the Background on a Schedule

I have a simulation model that should update itself variably once every 0.5 - 5 seconds (roughly) in the background with the frequency a function of the model's state. I am using a SwiftUI app that displays some of the data from this simulation…
0
votes
0 answers

What does a "Promise" mean?

I like to know what does a Promise mean? For example in the following code: import { Stan } from 'node-nats-streaming'; import { Subjects } from './subjects'; interface Event { subject: Subjects; data: any; } export abstract class…
0
votes
0 answers

Combine - .sink {..} is called as many times as there are cancellables

I use Combine to track changes in the View Model and react to these changes in the View in the UIKit Application. The thing is that every time the change occurs sink is getting called one more time. I store subscriptions in the Set() and basically…
Roma Kavinskyi
  • 268
  • 4
  • 12
0
votes
2 answers

Publisher extension for .sink

I've made an extension for Publisher to simplify sink, but my backend (not made by me) is messed up and I have a custom error that shouldn't be an error, and I want to return .success. extension Publisher { func sinkToResult(_ result: @escaping…
Marta Paniti
  • 152
  • 6
0
votes
1 answer

Custom publisher acting up when upstream is subscribed by multiple subscribers

My custom publisher acts strangely if I have another subscriber subscribing to the upstream publisher. So in my example, my upstream publisher gates the values dispatched let onlyGreaterThan4 = pub.drop(while: { value in return value < 4 }) I…
Yogurt
  • 2,913
  • 2
  • 32
  • 63