Skip to content

[bug] 'connect' event never triggered when lot of publish are done before connect #1153

Open
@robertsLando

Description

@robertsLando

I'm expecting a strange behaviour when connecting to a broker using wss protocol, the client never emits the 'connect' event but packets are published anyway to the broker. The broker on it's side correctly authenticate the client and receives all client messages. I connect using

var options = {
clean: true,
rejectUnauthorized:true,
clientId: 'mqtt_01',
username: xxx,
password: xxx,
incomingStore: <nedb store>,
outgoingStore: <nedb store>,
will: "...",
reconnectPeriod: 3000
}
var client = mqtt.connect('wss://my.broker.url:443', options)

I'm using Aedes as broker

AB#8680452

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions