Publish Question

Asked by Edward Farrenkopf

Suppose I publish to a topic to which no one is subscribed. Is there some sent back that says no one is currently subscribed?

Question information

Language:
English Edit question
Status:
Solved
For:
mosquitto Edit question
Assignee:
No assignee Edit question
Solved by:
Roger Light
Solved:
Last query:
Last reply:
Revision history for this message
Roger Light (roger.light) said :
#1

Hi,

No, the publisher doesn't know anything about where the message ends
up, unless you build this into your application.

Cheers,

Roger

On Mon, Nov 18, 2013 at 11:11 PM, Edward Farrenkopf
<email address hidden> wrote:
> New question #239433 on mosquitto:
> https://answers.launchpad.net/mosquitto/+question/239433
>
> Suppose I publish to a topic to which no one is subscribed. Is there some sent back that says no one is currently subscribed?
>
> --
> You received this question notification because you are a member of
> Mosquitto PPA, which is an answer contact for mosquitto.

Revision history for this message
Edward Farrenkopf (farrene) said :
#2

Thanks Roger.

If I may, just one more question. I was reading the code and looking at the logs and noticed that it looks like the publisher is added as a subscriber to the topic. Is this true?

Ed Farrenkopf

Revision history for this message
Best Roger Light (roger.light) said :
#3

No, that is not the case, although you could subscribe to the same topic
you are publishing to if you wished of course.
On Nov 19, 2013 12:16 AM, "Edward Farrenkopf" <
<email address hidden>> wrote:

> Question #239433 on mosquitto changed:
> https://answers.launchpad.net/mosquitto/+question/239433
>
> Status: Answered => Open
>
> Edward Farrenkopf is still having a problem:
> Thanks Roger.
>
> If I may, just one more question. I was reading the code and looking at
> the logs and noticed that it looks like the publisher is added as a
> subscriber to the topic. Is this true?
>
> Ed Farrenkopf
>
> --
> You received this question notification because you are a member of
> Mosquitto PPA, which is an answer contact for mosquitto.
>

Revision history for this message
Edward Farrenkopf (farrene) said :
#4

Thanks Roger Light, that solved my question.