Skip to content

[Bug]:Wechat Mini Programs cannot send messages in uint8Array format. When sending string type messages, the subscription end receives Ascll codes instead. #1996

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

Open
yyiGov opened this issue May 12, 2025 · 2 comments
Labels

Comments

@yyiGov
Copy link

yyiGov commented May 12, 2025

MQTTjs Version

4.2.1

Broker

RabbitMQ

Environment

Browser

Description

Wechat Mini Programs cannot send messages in uint8Array format. When sending string type messages, the subscription end receives Ascll codes instead.

Minimal Reproduction

The sent format is string::01F80F0000000000000001061B5D00101F30

Image

Debug logs

Image

@yyiGov yyiGov added the bug label May 12, 2025
@robertsLando
Copy link
Member

Feel free to submit a PR to fix this issue. https://github.com/mqttjs/MQTT.js/blob/main/src/lib/connect/wx.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
@robertsLando @yyiGov and others