Fixing AMQJS0008I Socket Error in PAHO JS + Activemq

Sometimes I often get the AMQJS0008I Socket closed error on onConnectionLost . I am using the latest version of Activemq.

Does this happen due to an incorrectly formatted message, because once it all messages are beautiful and sometimes it shows an error between them

+6
source share
1 answer

I received this message when the user with whom I logged in did not have access to the topic I was trying to subscribe to.

The simplest solution is to make sure that the user to whom the MQTT client connects has permission to read this topic if the client subscribes. If the client is trying to publish, make sure that the user has permission to write to this topic.

If you have already added the necessary permissions, make sure that you typed the topic name correctly.

+1
source

All Articles