Replies: 1 comment
-
React Native doesn’t have native support for raw TCP MQTT connections. I found a few libraries, but they’re not very popular, which can be a bit concerning. In my app, to work around this, I used the mqtt npm package but connected through a WebSocket server I built with Node.js. That way, I can stream real-time PLC data into my React Native app. Depending on the broker you’re using (e.g., Mosquitto), WebSocket (ws:// or wss://) support might already be available, so you can connect directly without needing a custom server. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Can React Native connect to TCP MQTT?
Beta Was this translation helpful? Give feedback.
All reactions