Questions tagged [subscriber]
272 questions
1
vote
1 answer
Angular7 Subscriber is not a function
//myService.ts
//customhttpservice is just an observable returning http request response.
public getCPData(): Observable {
if (localStorage.getItem('resind')) {
return of(JSON.parse(localStorage.getItem('resind')));
} else {
…

Deadpool_er
- 215
- 4
- 20
1
vote
2 answers
How to reference self in a Subscriber in Combine in Swift
Just getting to grips with Combine and have come across an issue where I need to call a method in my class when it receives a value from a Publisher, in this case a Notification from NotificationCenter...
Here's the subscription...
let subscribe =…

Cocoadelica
- 3,006
- 27
- 30
1
vote
2 answers
Angular - Check if all Subscriber in a list are finished
I use an interval to post a variable amount of data in a forEach loop to a backend. What I want to do is: If the first call of the post method is not finished but the interval already wants to call the method a second time, the call should be…

WeSt
- 889
- 5
- 14
- 32
1
vote
2 answers
RxJava using multiple observable (api calls) per one execution
I have something like:
private Single
- > getFirstApiResponse() {
return Single.just(....)
/////
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread());
}
private Single

Mike
- 79
- 2
- 9
1
vote
1 answer
How to solve the java.lang.IllegalStateException: Only one connection receive subscriber allowed
I used spring-cloud-gateway to build the gateway service, but when the service receives the POST request, this exception occurs: "java.lang.IllegalStateException: Only one connection receives subscriber allowed". How to solve this? Below is my code.…

Xin Guo
- 13
- 4
1
vote
2 answers
how can I use shopware event-subscriber properly
I've created a custom plugin SwagStartup in Shopware, and it works by calling an url like "shopware.project/myDemo".
Then I tried to define/use event subscriber in this plugin, following is the code:

nweicp
- 107
- 1
- 7
1
vote
2 answers
MQTT client subscribing data from RTI DDS publisher
Is it possible to make Mosquito Mqtt and RTI DDS to talk to each other?
I want my Mqtt subscriber to subscribe data from DDS publisher or vice-versa.

user10075116
- 11
- 2
1
vote
1 answer
Subscribing to a ROS sensor_msg/Image using python
I'm trying to subscribe to a ROS node published by a vrep vision sensor. Here is my code, which works fine when using my built-in webcam:
import rospy
from sensor_msgs.msg import Image
from std_msgs.msg import String
from cv_bridge import CvBridge,…

Moritz
- 352
- 1
- 3
- 15
1
vote
3 answers
Symfony 4 Doctrine EventSubscriber not used
Trying to register a Doctrine EventSubscriber but nothing is ever actually fired.
I have, on the Entity, in question, set the @ORM\HasLifeCycleCallbacks annotation.
Here's the Subscriber:

MattBoothDev
- 1,294
- 2
- 15
- 25
1
vote
0 answers
spring integrationflow does not set the message listener on receivercontainer
We use spring-integration (4.3.12) together with spring-amqp(1.7.4) to send and receive messages between micro services.
To keep out the integration/amqp configuration stuff out of the micro services, we want to use a library containing…

LST
- 11
- 2
1
vote
1 answer
Observing a function in Angular 5
I think I don't understand Observables. I've got 2 components ChartsComponent and let's say AppComponent. AppComponent fetches info from database and passes it through ChartsService to ChartsComponent to paint it. Thing is ChartsComponent's selector…

LoloSSS
- 91
- 2
- 12
1
vote
1 answer
How publisher-subscriber configurations can be included in a single app.config?
I am writing a simple server (publisher) and client (subscriber) application to imagine inter-process communication between two managed C# processes.
I need to write a server (that's working as a publisher) that will publish the contents to the…

Usman
- 2,742
- 4
- 44
- 82
1
vote
1 answer
Symfony 3.3 - Services.yml Argument (ResponseFactory) - Parameter Being Passed In As String Instead of Object
The Error
Hello, I am getting the following error:
Type error: Argument 2 passed to ApiExceptionBundle\EventListener\ApiExceptionSubscriber::__construct() must implement interface ApiExceptionBundle\Component\Factory\ResponseFactoryInterface, string…

khgm13
- 63
- 7
1
vote
0 answers
Symfony - No Extension Is Able To Load The Configuration (Subscriber/Event Listening) (REST API Exception Handling with JSON output)
Purpose
Hello, I am fairly new to Symfony and am trying to create an exception/error handling functionality for our Web API.
Requirements
When a user makes an invalid request to our API, we want to return a simple JSON object that looks something…

khgm13
- 63
- 7
1
vote
1 answer
TokBox: How resize subscriber video image, always 320x240
In my client subscriber initialization, I set the video height and width to 100%. The parent container is set to 366x274 but the video remains at 320x240. I've tried setting clientSubscriber.element.style.width and height but it just repositions…

Velocedge
- 1,222
- 1
- 11
- 35