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

Chrome connect mqtt server err #777

Closed
congim opened this issue Feb 26, 2018 · 2 comments
Closed

Chrome connect mqtt server err #777

congim opened this issue Feb 26, 2018 · 2 comments

Comments

@congim
Copy link

congim commented Feb 26, 2018

when i use chrome anerror has occured on this page.
"WebSocket connection to 'ws://localhost:9800/' failed: Error during WebSocket handshake: Sent non-empty 'Sec-WebSocket-Protocol' header but no response was received"
mac safari is ok! why?

@mcollina
Copy link
Member

I think you are connecting from a https page.

@congim
Copy link
Author

congim commented Feb 26, 2018

All the problems have been solved

The idea is to send 'mqtt' as default subprotocol and 'mqttv3.1'if in the mqtt.connect options for MQTT 3.1 are passed:

{
protocolId: 'MQIsdp',
protocolVersion: 3
}

@congim congim closed this as completed Feb 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants