title: How to share topics between two protocols in mosquitto
body: <p>I am using mosquitto mqtt both with MQTT protocol and MQTT over websockets protocol. Some client use mqtt protocol and some uses websocket protocol due to their limitations. MQTT port is 1883 and websocket port is 8083. The problem is that I want to share all the topics on both port i.e. on websocket and MQTT. What type of configurations i should do in my MQTT broker or any other solution? </p>
  
  <p>In other words I want to listen to all topics on websocket(port 8083) which are published on mqtt(port 1883) on same broker and vise versa.</p>
  
  <p><strong>mosquitto.conf</strong> file is following</p>
  
  <pre><code>allow_anonymous false
  password_file /etc/mosquitto/passwd
  
  listener 8083 127.0.0.1
  protocol websockets
  </code></pre>