Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send control packets before receiving CONNACK #7

Open
vishnureddy17 opened this issue May 20, 2022 · 0 comments
Open

Send control packets before receiving CONNACK #7

vishnureddy17 opened this issue May 20, 2022 · 0 comments
Assignees

Comments

@vishnureddy17
Copy link
Member

vishnureddy17 commented May 20, 2022

From the MQTT spec: "Clients typically wait for a CONNACK Packet, However, if the Client exploits its freedom to send Control Packets before it receives a CONNACK, it might simplify the Client implementation as it does not have to police the connected state. The Client accepts that any data that it sends before it receives a CONNACK packet from the Server will not be processed if the Server rejects the connection."

Should we do this? I think no, but I'm putting it here to consider further.
I think that the current MQTT.js waits for the CONNACK packet.

@vishnureddy17 vishnureddy17 self-assigned this May 20, 2022
@vishnureddy17 vishnureddy17 changed the title publish before being connected Send control packets before receiving CONNACK May 20, 2022
@vishnureddy17 vishnureddy17 transferred this issue from mqttjs/MQTT.js Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Todo 📝
Development

No branches or pull requests

1 participant