-
Notifications
You must be signed in to change notification settings - Fork 3
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
net.createConnection is not a function #8
Comments
Hi @MajorMayer, It seems that there is no way to connect directly to the broker via TCP on the browser. It would be best if you used WebSocket (ws://, wss://) as your protocol. |
Hi @tommy44458 Is it not available in nuxt3? |
Hi @jskim82, (sorry that I tagged the wrong name the first time Maybe you can try another way to connect with your broker:
Also, I think your broker need to open a port for web socket connections. Then, your protocol should be ‘ws’ and port should be ‘your broker’s listening port for web socket’. |
当协议是 mqtt:// 的时候 会出现这个错误 Uncaught (in promise) TypeError: net.createConnection is not a function
The text was updated successfully, but these errors were encountered: