Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mosquitto-dev] Websockets unexpected behaviour


I have mosquitto configured to use mqtt and web sockets but the behaviour is not the expected one i think. After someone publishes, i get on server the disconnect message from the publisher.

1526171478: Received DISCONNECT from mosqpub|71851-Diogos-Ma

That is the starting of the server

1526171520: mosquitto version 1.4.14 (build date 2017-10-22 16:34:39+0100) starting

1526171520: Config loaded from /usr/local/etc/mosquitto/mosquitto.conf.

1526171520: Opening websockets listen socket on port 9001.

1526171520: Opening ipv6 listen socket on port 9000.

1526171520: Opening ipv4 listen socket on port 9000.

And my updates to the config file 

# Choose the protocol to use when listening.

# This can be either mqtt or websockets.

# Websockets support is currently disabled by default at compile time.

# Certificate based TLS may be used with websockets, except that

# only the cafile, certfile, keyfile and ciphers options are supported.

port 9000

protocol mqtt

listener 9001

protocol websockets 


Thank you for the help here. 
Diogo Aleixo

Back to the top