I'm using ActiveMQ 5.11.1 which is configured with mqtt over websocket.
Is it possible to disconnect old mqtt connection with same client Id in server side if new connection is came with same client Id?
When I tried this scenario by using hivemq websocket, I'm getting error message as follows.
2015-06-18 20:03:06,074 | WARN | Transport Connection to: MQTTSocket_22078239 failed: java.io.IOException: Broker: localhost - Client: abc already connected from MQTTSocket_24236395 | org.apache.activemq.broker.TransportConnection.Transport | qtp20829588-40
For the WS Connector in ActiveMQ you need to enable the allowLinkStealing option
This defaults to on for normal MQTT based transport connectors but because the WS transport connector must serve multiple protocol connections (STOMP and MQTT) the default is off.