Comments (5)
upgrade deps/esockd to 0.2.0 to support ssl socket.
etc/app.config:
{'mqtts', 8883, [
{max_clients, 1024},
{acceptor_pool, 4},
%{cacertfile, "etc/ssl/cacert.pem"},
{ssl, [{certfile, "etc/ssl.crt"},
{keyfile, "etc/ssl.key"}]}
]},
from emqx.
How do you set up the config files to support a socket connection to the broker?
I'm trying to test using wscat -c ws://localhost:8083/mqtt
but I get
error: Error: unexpected server response (400)
and the broker console output is:
17:38:32.386 [info] Websocket Connection from: 127.0.0.1
17:38:32.386 [error] WebSocket with error Protocol: undefined
Any help you can provide with this would be hugely appreciated!
from emqx.
@Ethanjfobrien, WebSocket should have 'Sec-WebSocket-Protocol' Header with value that start with 'mqtt'.
from emqx.
Thanks very much,
I got it working using mqtt.js:
mqtt pub -t 'hello' -l 'ws' -h 'localhost' -p '' -m 'hello' -v
wscat doesn't support the mqtt socket protocol
from emqx.
I use mqtt.js too:)
在 2015年6月19日,下午6:40,Ethan [email protected] 写道:
Thanks very much,
I got it working using mqtt.js:mqtt pub -t 'hello' -l 'ws' -h 'localhost' -p '' -m 'hello' -v
wscat doesn't support the mqtt socket protocol—
Reply to this email directly or view it on GitHub #48 (comment).
from emqx.
Related Issues (20)
- The Client ID used by the MQTT bridge is generated according to fixed rules HOT 2
- Allow users to explicitly persist Dashboard configuration
- Connector to MQTT host fails with bad username/password, other clients connect normally HOT 2
- But I found that it was sent successfully, and I also subscribed to this topic. Should return 200 and messageid HOT 1
- Feature Request: Add exact_match Parameter to JWT ACL HOT 17
- The unit of max packet size is wrong
- Default Value of fail_if_no_peer_cert HOT 10
- Backup and Restore | Rule Configuration Missing
- Placeholders such as ${cert_subject} in JWT AuthN do not work HOT 4
- SSL listener's check for "CA Cert" HOT 5
- The statistics of disconnection reasons do not include malformed packets HOT 3
- Clearer disconnection reasons
- Add "topic_subscribe_filter" field to JWT ACL (or some acl behavior like this) HOT 21
- Add curl to docker image HOT 5
- 消息重传机制只会在重连的时候触发么 HOT 3
- api/v5/prometheus/stats not have erlang_vm_* 指标没了吗? HOT 3
- 延迟subscribe可能导致消息消费不到 HOT 6
- runq_overload alert on using MongoDB for authz/authn and also alert gets stuck for days sometimes HOT 9
- Helm Chart: MQTT ingress proxies HTTP to MQTT port HOT 4
- docker can't pull emqx:5.7.0 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emqx.