Questions tagged [subscribe]

994 questions
4
votes
1 answer

Pubnub javascript is not receiving callbacks or message for some reason

Just want to understand why my pubnub javascript code does not receive a message from a channel. I can subscribe and publish, but if another browser sends a new publish message, the other browser can not receive the message. heres my…
4
votes
3 answers

Knockout subscribe scope

Is there any possibility to change the scope of the subscribe in Knockout? I have something like this: element = { type: ko.observable() name: ko.observable() content: ko.observable() …
RobertPorter
  • 542
  • 6
  • 16
4
votes
2 answers

How to do I show progress when using Reactive Extensions in C#

Am using reactive extensions in C# to perform some calculations. Here is how my code looks like so far. I have tried to wrap the code around so that I can show progress while to executing a series of tasks within my Calculate method Here is the…
4
votes
1 answer

Stackexchange.Redis, can I publish to multiple channels at once?

Can I publish messages to several channels within the same command using the glob-style pattern, such as Connection.GetSubscriber().Publish("room/*", "my message") and the message gets published to all channels that match the pattern? Maybe the…
Matt
  • 7,004
  • 11
  • 71
  • 117
4
votes
0 answers

android - how can I add a subscription to a public calendar?

I would like to make it possible for users to easily subscribe to public calendars in my app. I have been searching the api but have not found anything regarding adding subscriptions to existing public calendars. Does code even exist to do this? If…
3
votes
2 answers

Any analog of BroadcastReceivers in iOS?

On Android, to listen to system-wide events like when WiFi has been turned on/off, location has changed, device is now in roaming and many other - one subscribes to these events using BroadcastReceivers. What technique is used for similar purposes…
iseeall
  • 3,381
  • 9
  • 34
  • 43
3
votes
1 answer

NATS JetStream subscription in ASP.Net Core

I am subscribing to a NATS Jetstream channel and process the messages received from NATS Server. I can do it in a console app by connecting to NATS Server and subscribing to a subject. Now I am trying to configure the subscription in ASP.Net core…
3
votes
2 answers

Angular spinner infinite looping while ngIf in router-outlet

I am creating an application with frontend in Angular with backend in Laravel. This application includes an interceptor to display a spinner. For this, I created a service with a BehaviorSubject and an Observable like this: export class…
3
votes
0 answers

InAppBrowser event handlers aren't firing: Ionic 5 + Angular 10 + Capacitor

Here's code I added to a blank Angular+Capacitor starter project produced by Ionic's CLI (within home.page.ts): openInAppBrowser() { const exampleUrl = 'https://ionicframework.com/docs/components'; const options: InAppBrowserOptions = { …
atrain
  • 51
  • 5
3
votes
1 answer

Subscribe to events in VBA?

Did I understood correctly that you can't subscribe to an event other than using the VBA Editor's control name + event name comboboxes? There is no combobox.change+=eventhandler syntax available as in other languages like C#, is there?
Bogdan Verbenets
  • 25,686
  • 13
  • 66
  • 119
3
votes
2 answers

Akka HTTP Error Response entity was not subscribed after 1 second

I am using Akka HTTP cachedHostConnectionPoolHttps pool to send requests as part of Akka Streams Flow: private val requestFlow: Flow[(HttpRequest, HelperClass), Either[Error, String], _] = Http().cachedHostConnectionPoolHttps(BaseUrl).mapAsync(1)…
syforce
  • 141
  • 2
  • 10
3
votes
2 answers

Paho-mqtt subscribe one-time message

Is there an elegant way to pull one message off the broker without having to: subscribe create an on_message() receive the message unsubscribe I ask because we are using a json message which has multiple fields. When new data comes in I want to…
Scott
  • 61
  • 2
  • 9
3
votes
2 answers

Interface object properties are undefined but there are values in angular

I call those APIs from Node Express server in service.ts and subscribe them in component.ts. I could check that responses were correct and able to copy it to interface object, and able to console.log them as well. However, I can't access each…
dsoup2
  • 193
  • 2
  • 16
3
votes
1 answer

Why C# Rx Subscribe() function doesn't work with "async" keyword?

I've got this code snippet: static void Main(string[] args) { Observable.Range(1, 5).Subscribe(async x => await DoTheThing(x)); Console.WriteLine("done"); } static async Task DoTheThing(int x) { await…
Troskyvs
  • 7,537
  • 7
  • 47
  • 115
3
votes
1 answer

How to subscribe asynchronously to matdialog service for candeactivate guard?

I have implemented candeactivate guard using angular forms validation. If user clicks on an ngForm Field. and tries to navigate to different Tab, user will get a custom confirmation Popup, which will say "Discard Changes ? " and returns true or…