Skip to content

msg missing #2

@davidxiaobj

Description

@davidxiaobj

Hi,
Tried to play by following the advice, run two subs, and one sub, but one receiver only received 1st msg, the other one could get several ones, then no messages received,
Is it related to Mosquitto qos? if so, how to set it in Client API? any advice?
I tried on Vagrant-based Ubuntu on Mac and directly on Mac. got the similar issue

Tried mosquitto_sub/mosquitto_pub, it works well, even without specifying -q

$TOPIC=foo PORT=4000 node pub
to "foo": hello
to "foo": world
to "foo": hi,
to "foo": hell
to "foo": hi,

1st terminal only received the 1st msg, no more

$TOPIC=foo PORT=4000 node sub
hello

2nd terminal received first several msg, then nothing

$ TOPIC=foo PORT=4000 node sub
hello
world
hi,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions