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


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="outlog" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  outlog
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>try ws:// and 192.168.0.3 - used to work.. but havent emu’ed on android 9 yet..</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="127928" 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/should-i-use-channels-or-a-regular-json-web-endpoint-for-my-react-native-app/21901/22">Post #21</a>
	                </div>
	            </div>
              <div id="likers-container-127928" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="127928"
                     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="127931" data-post-id="127931">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="yukster" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/yukster/120/13609_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  yukster
                    <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>HOLY STUPID RABBIT HOLE! It works via the INSECURE websocket with the 192 address! The whole “Android 9 doesn’t allow insecure network” and “you have to install a network_security_config.xml” were total wild goose chases. Argh!</p>
<p>Thank you so much <a class="mention" href="/u/outlog" rel="nofollow">@outlog</a>! Valuable lesson learned.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="127931" 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/should-i-use-channels-or-a-regular-json-web-endpoint-for-my-react-native-app/21901/23">Post #22</a>
	                </div>
	            </div>
              <div id="likers-container-127931" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="127931"
                     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="129060" data-post-id="129060">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="yukster" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/yukster/120/13609_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  yukster
                    <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><a class="mention" href="/u/outlog" rel="nofollow">@outlog</a> have you had trouble with errors in phoenix.js  when running in RN? I discovered this morning that my app blows up when I run it without the debugger!  The error is <code>c.addEventListener is not a function. (In 'c.addEventListener("beforeunload", ...)</code> and the only occurrence of “beforeunload” I can find is here:</p>
<p><a href="https://github.com/phoenixframework/phoenix/blob/master/assets/js/phoenix.js#L744" class="onebox" target="_blank" rel="noopener nofollow ugc">https://github.com/phoenixframework/phoenix/blob/master/assets/js/phoenix.js#L744</a></p>
<p>Looking at the the minimized version of that code in my app’s node_modules, it looks like the logic matches:</p>
<p><code>l&amp;&amp;l.addEventListener&amp;&amp;l.addEventListener("beforeunload",function(e){n.conn&amp;&amp;(n.unloaded=!0,n.abnormalClose("unloaded"))})</code></p>
<p>This looks like it should correctly <em>not</em> try to invoke <code>addEventListener</code> if it’s not defined, but apparently it is. I can keep developing with the debugger, but it makes me nervous that I’m going down the wrong path, trying to use phoenix.js in a React Native app. Sounds like it works fine for you though?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="129060" 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/should-i-use-channels-or-a-regular-json-web-endpoint-for-my-react-native-app/21901/24">Post #23</a>
	                </div>
	            </div>
              <div id="likers-container-129060" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="129060"
                     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="129062" data-post-id="129062">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="yukster" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/yukster/120/13609_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  yukster
                    <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>Bah, I think I know what’s wrong. I am using the <code>use-phoenix-channel</code> library I mentioned earlier and it is pulling in an older version of phoenix.js that is not correctly guarding on that line. I have a fork of it so I’ll fix it there. Sorry for the noise.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="129062" 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/should-i-use-channels-or-a-regular-json-web-endpoint-for-my-react-native-app/21901/25">Post #24</a>
	                </div>
	            </div>
              <div id="likers-container-129062" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="129062"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-last-post cat-last-post" title="Last post!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>