<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="220128" data-post-id="220128">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="brianmay" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/brianmay/120/19386_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  brianmay
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I think you might need to set <code>port: 8883</code> somewhere.</p>
<p>I also set <code>proto_ver: :v5</code>, <code>client_id: &lt;string&gt;</code>, and <code>clean_start: false</code>, although I would like to think these values are optional (not tested though).</p>
<p>According to the docs <code>proto_ver</code> defaults to <code>:v4</code>, not <code>:v5</code> which might be desirable.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="220128" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/any-recommendations-on-a-mqtt-client-for-elixir/41028/22">Post #21</a>
	                </div>
	            </div>
              <div id="likers-container-220128" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="220128"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #21"></div>
  </section>
</div>
    <div class="postbit" id="220129" data-post-id="220129">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Sebb" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/Sebb/120/21818_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Sebb
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>that’s default for SSL, see: <a href="https://github.com/emqx/emqtt/blob/321a67665111f81ddc124878b1168b635b827b27/src/emqtt_cli.erl#L337" rel="noopener nofollow ugc">emqtt_cli.erl#L337</a>.<br>
I’m using the exact same opts the cli uses.</p>
<p>You got SSL running right?<br>
Can you check if it works in docker?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="220129" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/any-recommendations-on-a-mqtt-client-for-elixir/41028/23">Post #22</a>
	                </div>
	            </div>
              <div id="likers-container-220129" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="220129"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #22"></div>
  </section>
</div>
    <div class="postbit" id="220130" data-post-id="220130">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="brianmay" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/brianmay/120/19386_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  brianmay
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="Sebb" data-post="23" data-topic="41028">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/sebb/48/21818_2.png" class="avatar"> Sebb:</div>
<blockquote>
<p>that’s default for SSL, see: <a href="https://github.com/emqx/emqtt/blob/321a67665111f81ddc124878b1168b635b827b27/src/emqtt_cli.erl#L337" rel="noopener nofollow ugc">emqtt_cli.erl#L337</a>.<br>
I’m using the exact same opts the cli uses.</p>
</blockquote>
</aside>
<p>Your theory makes sense. But if I don’t specify <code>port: 8883</code> I get symptoms that look identical to what you observed. Which is somewhat weird and confusing.</p>
<p>… Oh wait, that default is only applicable for the CLI I think.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="220130" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/any-recommendations-on-a-mqtt-client-for-elixir/41028/24">Post #23</a>
	                </div>
	            </div>
              <div id="likers-container-220130" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="220130"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #23"></div>
  </section>
</div>
    <div class="postbit" id="220131" data-post-id="220131">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Sebb" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/Sebb/120/21818_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Sebb
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>OK thats super stupid. <img src="https://forum.elixirforum.com/images/emoji/apple/dizzy_face.png?v=15" title=":dizzy_face:" class="emoji" alt=":dizzy_face:" loading="lazy" width="20" height="20"></p>
<p>Its working! Who would have thought, you just have to do it right. <img src="https://forum.elixirforum.com/images/emoji/apple/woozy_face.png?v=15" title=":woozy_face:" class="emoji" alt=":woozy_face:" loading="lazy" width="20" height="20"></p>
<pre data-code-wrap="elixir"><code class="lang-elixir">def test_8883 do
  opts = [
    host: 'test.mosquitto.org',
    port: 8883,
    ssl: true,
    ssl_opts: [cacertfile: "mosquitto.org.crt"]
  ]

  {:ok, pid} = :emqtt.start_link(opts)
  {:ok, _} = :emqtt.connect(pid)
  {:ok, _, _} = :emqtt.subscribe(pid, %{}, [{"test/#", []}])
end
</code></pre>
<p>And here is code for “8884 : MQTT, encrypted, client certificate required”.<br>
You need to <a href="https://test.mosquitto.org/ssl/" rel="noopener nofollow ugc">Generate a TLS client certificate for test.mosquitto.org</a> first</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">def test_8884 do
  opts = [
    host: 'test.mosquitto.org',
    port: 8884,
    ssl: true,
    ssl_opts: [
      cacertfile: "mosquitto.org.crt",
      certfile: "client.crt",
      keyfile: "client.key"
    ]
  ]

  {:ok, pid} = :emqtt.start_link(opts)
  {:ok, _} = :emqtt.connect(pid)
  {:ok, _, _} = :emqtt.subscribe(pid, %{}, [{"test/#", []}])
end
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="220131" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/any-recommendations-on-a-mqtt-client-for-elixir/41028/25">Post #24</a>
	                </div>
	            </div>
              <div id="likers-container-220131" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="220131"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #24"></div>
  </section>
</div>
    <div class="postbit" id="220140" data-post-id="220140">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="brianmay" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/brianmay/120/19386_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  brianmay
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>OK, I think I understand why I need to override the <code>server_name_indication</code> value. And understand a bit more about the erlang debugger.</p>
<p>Normally a program would use <code>ssl:connect(Host, Port, Options, Timeout)</code> which would create the TCP connection to the host. But emqtt doesn’t do that, it creates the TCP connection and then calls <code>ssl:connect(Sock, SslOpts2, Timeout)</code> on the existing sock connection. As a result the ssl module has no way of knowing what the original hostname was for the original connection.</p>
<p><a href="https://github.com/emqx/emqtt/blob/master/src/emqtt_sock.erl#L53" class="onebox" target="_blank" rel="noopener nofollow ugc">https://github.com/emqx/emqtt/blob/master/src/emqtt_sock.erl#L53</a><br>
<a href="https://github.com/emqx/emqtt/blob/master/src/emqtt_sock.erl#L64" class="onebox" target="_blank" rel="noopener nofollow ugc">https://github.com/emqx/emqtt/blob/master/src/emqtt_sock.erl#L64</a></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="220140" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/any-recommendations-on-a-mqtt-client-for-elixir/41028/26">Post #25</a>
	                </div>
	            </div>
              <div id="likers-container-220140" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="220140"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #25"></div>
  </section>
</div>
    <div class="postbit" id="220141" data-post-id="220141">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="brianmay" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/brianmay/120/19386_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  brianmay
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>This behaviour is in the documentation for <code>ssl:connect/2</code> in fact. <a href="https://erlang.org/doc/man/ssl.html#connect-2" class="inline-onebox" rel="nofollow">ssl — OTP 29.0.2 (ssl 11.7.2)</a></p>
<blockquote>
<p>If the option verify is set to verify_peer the option server_name_indication shall also be specified, if it is not no Server Name Indication extension will be sent, and <a href="https://erlang.org/doc/man/public_key.html#pkix_verify_hostname-2" rel="nofollow">public_key:pkix_verify_hostname/2</a> will be called with the IP-address of the connection as ReferenceID, which is probably not what you want.</p>
</blockquote>
<p>I am starting to think however that emqtt should really supply that value itself, if it wasn’t already supplied.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="220141" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/any-recommendations-on-a-mqtt-client-for-elixir/41028/27">Post #26</a>
	                </div>
	            </div>
              <div id="likers-container-220141" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="220141"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #26"></div>
  </section>
</div>
    <div class="postbit" id="220144" data-post-id="220144">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="brianmay" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/brianmay/120/19386_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  brianmay
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Sometimes things in emqtt can be inconsistent. For example, the type spec for the handlers says:</p>
<p>disconnected := fun(({reason_code(), _Properties :: term()}) → any()) | mfas()</p>
<p>Implies the disconnected handler is called as <code>disconnected({reason, properties})</code>. But sometimes it is called as <code>disconnected(error)</code> without the tuple and a completely different type.</p>
<p><a href="https://github.com/emqx/emqtt/blob/master/src/emqtt.erl#L1052" class="onebox" target="_blank" rel="noopener nofollow ugc">https://github.com/emqx/emqtt/blob/master/src/emqtt.erl#L1052</a></p>
<p>I have seen it being called both ways in my test code.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="220144" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/any-recommendations-on-a-mqtt-client-for-elixir/41028/28">Post #27</a>
	                </div>
	            </div>
              <div id="likers-container-220144" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="220144"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #27"></div>
  </section>
</div>
    <div class="postbit" id="220145" data-post-id="220145">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="brianmay" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/brianmay/120/19386_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  brianmay
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Not absolutely sure about that now. I am getting myself confused with unrelated stuff.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="220145" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/any-recommendations-on-a-mqtt-client-for-elixir/41028/29">Post #28</a>
	                </div>
	            </div>
              <div id="likers-container-220145" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="220145"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #28"></div>
  </section>
</div>
    <div class="postbit" id="220147" data-post-id="220147">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="brianmay" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/brianmay/120/19386_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  brianmay
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Seems like the definition of <code>return_code()</code> isn’t correct. Should be an integer according to the definition. But I get values like:</p>
<ul>
<li><code>:shutdown</code> - on certificate validation error.</li>
<li><code>{:badmatch, :ok}</code> - elixir exception generated in linked process.</li>
</ul>
<p>Not sure if this will always be the case or not however.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="220147" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/any-recommendations-on-a-mqtt-client-for-elixir/41028/30">Post #29</a>
	                </div>
	            </div>
              <div id="likers-container-220147" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="220147"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #29"></div>
  </section>
</div>
    <div class="postbit" id="220167" data-post-id="220167">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Sebb" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/Sebb/120/21818_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Sebb
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I can connect to all the ports mosquittos testserver offers. IPV6 and SSL do not work together …!?<br>
I’ve omitted websockets because emqtt does not support TLS for websockets.<br>
I’ve tested with version <code>1.2.0</code> because I suddenly can’t build <code>1.4.0</code> anymore, there is sth wrong with the quicer submodule.</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">defmodule MqttHowtoTest do
  use ExUnit.Case

  @hostname 'test.mosquitto.org'
  @host [host: @hostname]
  @credentials [username: "rw", password: "readwrite"]
  @ssl_opts [
    cacertfile: "mosquitto.org.crt",
    server_name_indication: @hostname,
    verify: :verify_peer
  ]
  @client_cert [certfile: "client.crt", keyfile: "client.key"]
  @ipv6 [tcp_opts: [:inet6]]

  @opts_1883 @host ++ [port: 1883]
  @opts_1884 @host ++ @credentials ++ [port: 1884]
  @opts_8883 @host ++ [ssl: true, ssl_opts: @ssl_opts, port: 8883]
  @opts_8884 @host ++ [ssl: true, ssl_opts: @ssl_opts ++ @client_cert, port: 8884]
  @opts_8885 @host ++ @credentials ++ [ssl: true, ssl_opts: @ssl_opts, port: 8885]

  def connect(opts) do
    {:ok, pid} = :emqtt.start_link(opts)
    :emqtt.connect(pid)
  end

  test "1883" do
    assert {:ok, _} = connect(@opts_1883)
  end

  test "1884" do
    assert {:ok, _} = connect(@opts_1884)
  end

  test "8883" do
    assert {:ok, _} = connect(@opts_8883)
  end

  test "8884" do
    assert {:ok, _} = connect(@opts_8884)
  end

  test "8885" do
    assert {:ok, _} = connect(@opts_8885)
  end

  test "1883 ipv6" do
    assert {:ok, _} = connect(@opts_1883 ++ @ipv6)
  end

  test "1884 ipv6" do
    assert {:ok, _} = connect(@opts_1884 ++ @ipv6)
  end

  # these will not work: ** (EXIT from #PID&lt;0.212.0&gt;) :econnrefused
  
  # test "8883 ipv6" do
  #   assert {:ok, _} = connect(@opts_8883 ++ @ipv6)
  # end

  # test "8884 ipv6" do
  #   assert {:ok, _} = connect(@opts_8884 ++ @ipv6)
  # end

  # test "8885 ipv6" do
  #   assert {:ok, _} = connect(@opts_8885 ++ @ipv6)
  # end
end

</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="220167" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/any-recommendations-on-a-mqtt-client-for-elixir/41028/31">Post #30</a>
	                </div>
	            </div>
              <div id="likers-container-220167" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="220167"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #30"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <a class="load-more-button" data-turbo-stream="true" href="/topics/41028/load_more?page=4">Load more posts (21 remaining)</a>
</div></template></turbo-stream>