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


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Almost ready to deploy my app on <a href="https://gigalixir.com/" rel="noopener nofollow ugc">Gigalixir</a>, running into a strange “invalid quoted expression” error when I try pushing to Gigalixir… has anyone run into something like this before? Everything works fine in development mode and compiles when I run <code>mix release --env=prod</code>, but things fall apart once I run <code>git push gigalixir master</code></p>
<p>My Gigalixir setup is based on ElixirCasts great tutorial: <a href="https://elixircasts.io/deploying-with-gigalixir" class="inline-onebox" rel="noopener nofollow ugc">Deploying with Gigalixir - ElixirCasts</a></p>
<p>My versions of drab and distillery are… <code>{:distillery, "~&gt; 1.0.0"}, {:drab, "~&gt; 0.9.1"}</code></p>
<p>The weird compile error starts here…</p>
<pre><code>** (CompileError) lib/ficdb_web/templates/fanfic/index.html.drab: invalid quoted expression: %Drab.Live.Safe{partial: %Drab.Live.Partial{amperes: %{}, assigns: %{}, hash: "giytgmrzha2dsmjz", path: "lib/ficdb_web/templates/fanfic/index.html.drab"}, safe: [{:__block__, [], [{:=, [], [{:tmp1, [], Drab.Live.EExEngine}, [{:__block__, [], [{:=, [], [{:tmp1, [], Drab.Live.EExEngine}, [{:__block__, [], [{:=, [], [{:tmp1, [], Drab.Live.EExEngine}, [["{{{{@drab-partial:giytgmrzha2dsmjz}}}}"], "\n                   &lt;li id=\""]]}, [{:tmp1, [], Drab.Live.EExEngine}, {:case, [generated: true], [{:id, [line: 22], nil}, [do: [{:-&gt;, [generated: true], [[safe: {:data, [generated: true], Drab.Live.EExEngine}], {:data, [generated: true], Drab.Live.EExEngine}]}, {:-&gt;, [generated: true], [[{:when, [generated: true], [{:bin, [generated: true], Drab.Live.EExEngine}, {:is_binary, [generated: true, context: Drab.Live.EExEngine, import: Kernel], [{:bin, [generated: true], Drab.Live.EExEngine}]}]}], {{:., [generated: true], [{:__aliases__, [generated: true, alias: false], [:Plug, :HTML]}, :html_escape]}, [generated: true], [{:bin, [generated: true], Drab.Live.EExEngine}]}]}, {:-&gt;, [generated: true], [[{:other, [generated: true], Drab.Live.EExEngine}], {{:., [line: 22], [{:__aliases__, [line: 22, alias: false], [:Phoenix, :HTML, :Safe]}, :to_iodata]}, [line: 22], [{:other, [line: 22], Drab.Live.EExEngine}]}]}]]]}]]}, "\"&gt;\n                     &lt;a class=\"\"&gt;\n                     &lt;span drab-ampere=\"ge3tcnrvgqzdonjr\" uk-icon=\""]]}, [{:tmp1, [], Drab.Live.EExEngine}, "{{{{@drab-expr-hash:gm4dqmjzgy3taojt}}}}", {:case, [generated: true], [{{:., [line: 24], [Access, :get]}, [line: 24], [{{:., [line: 24], [{:__aliases__, [line: 24, alias: false], [:Phoenix, :HTML, :Engine]}, :fetch_assign]}, [line: 24], [{:var!, [line: 24, context: Drab.Live.EExEngine, import: Kernel], [{:assigns, [line: 24], Drab.Live.EExEngine}]}, :sort_by_icons]}, {:id, [line: 24], nil}]}, [do: [{:-&gt;, [generated: true], [[safe: {:data, [generated: true], Drab.Live.EExEngine}], {:data, [generated: true], Drab.Live.EExEngine}]}, {:-&gt;, [generated: true], [[{:when, [generated: true], [{:bin, [generated: true], Drab.Live.EExEngine}, {:is_binary, [generated: true, context: Drab.Live.EExEngine, import: Kernel], [{:bin, [generated: true], Drab.Live.EExEngine}]}]}], {{:., [generated: true], [{:__aliases__, [generated: true, alias: false], [:Plug, :HTML]}, :html_escape]}, [generated: true], [{:bin, [generated: true], Drab.Live.EExEngine}]}]}, {:-&gt;, [generated: true], [[{:other, [generated: true], Drab.Live.EExEngine}], {{:., [line: 24], [{:__aliases__, [line: 24, alias: false], [:Phoenix, :HTML, :Safe]}, :to_iodata]}, [line: 24], [{:other, [line: 24], Drab.Live.EExEngine}]}]}]]]}, "{{{{/@drab-expr-hash:gm4dqmjzgy3taojt}}}}"]]}, "\"&gt;&lt;/span&gt;"]]}, [{:tmp1, [], Drab.Live.EExEngine}, {:case, [generated: true], [{:name, [line: 24], nil}, [do: [{:-&gt;, [generated: true], [[safe: {:data, [generated: true], Drab.Live.EExEngine}], {:data, [generated: true], Drab.Live.EExEngine}]}, {:-&gt;, [generated: true], [[{:when, [generated: true], [{:bin, [generated: true], Drab.Live.EExEngine}, {:is_binary, [generated: true, context: Drab.Live.EExEngine, import: Kernel], [{:bin, [generated: true], Drab.Live.EExEngine}]}]}], {{:., [generated: true], [{:__aliases__, [generated: true, alias: false], [:Plug, :HTML]}, :html_escape]}, [generated: true], [{:bin, [generated: true], Drab.Live.EExEngine}]}]}, {:-&gt;, [generated: true], [[{:other, [generated: true], Drab.Live.EExEngine}], {{:., [line: 24], [{:__aliases__, [line: 24, alias: false], [:Phoenix, :HTML, :Safe]}, :to_iodata]}, [line: 24], [{:other, [line: 24], Drab.Live.EExEngine}]}]}]]]}]]}, "\n                     &lt;/a&gt;\n                   &lt;/li&gt;\n                   "]}
           (phoenix) /tmp/build/lib/ficdb_web/views/fanfic_view.ex:1: Phoenix.Template.__before_compile__/1
    remote: Command '[u'docker', u'run', u'--rm', u'-e', u'GIGALIXIR_SHOULD_CLEAN_CACHE=False', u'-v', u'/tmp/tmpQCSpSB/skyblue-bland-jabiru:/tmp/app', u'-v', u'/tmp/gigalixir/cache/skyblue-bland-jabiru/:/tmp/cache', u'-v', u'/tmp/tmpQCSpSB/env:/tmp/env', u'--env=USER=www-data', u'us.gcr.io/gigalixir-152404/herokuish:latest']' returned non-zero exit status 1
</code></pre>
<p>I have zero dev ops experience under my belt, not quite sure where to begin the debugging process on this. I saw some similar looking errors on <a href="https://github.com/grych/drab/issues/37" rel="noopener nofollow ugc">Drab’s Github page</a> so I thought to post here rather than reaching out to Gigalixir support. Assistance to get my first Elixir app out the door would be very much appreciated!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="98477" 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/drab-remote-controlled-frontend-framework-for-phoenix/3277/413">Post #412</a>
	                </div>
	            </div>
              <div id="likers-container-98477" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="98477"
                     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 #412"></div>
  </section>
</div>
    <div class="postbit" id="98486" data-post-id="98486">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="grych" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/grych/120/5610_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  grych
                    <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 class="user-title">
									<span>Creator of Drab</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Hmm I’ve never deployed any Drab on gigalixir, I need to try it out. But right, it looks more like a bug in Drab.Live than a case for gigalixir support.<br>
In the meantime, please ensure you have Drab in v0.9.3, as there were some similar issues fixed in 0.9.2 as far as I remember. Also, is the Elixir and Erlang version the same on your machine as on gigalixir? I understand you compile the stuff on your machine and send compiled beans there. I am just guessing here…</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="98486" 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/drab-remote-controlled-frontend-framework-for-phoenix/3277/414">Post #413</a>
	                </div>
	            </div>
              <div id="likers-container-98486" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="98486"
                     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 #413"></div>
  </section>
</div>
    <div class="postbit" id="98496" data-post-id="98496">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="doogs" data-post="411" data-topic="3277">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/d/9de0a6/48.png" class="avatar"> doogs:</div>
<blockquote>
<p>I read that it you dont pass the socket to the broadcast function then you need to pass in all assigns and view etc. But I wont really have the data for all assigns, so this doesnt seem like a possibility?</p>
</blockquote>
</aside>
<p>Break it up into shared commanders.  I like using lots of shared commanders.  <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p>
<aside class="quote no-group" data-username="grych" data-post="412" data-topic="3277">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/grych/48/5610_2.png" class="avatar"> grych:</div>
<blockquote>
<p>This is why I should not do a broadcasting version of <code>poke</code> . I recommend you to use traditional DOM updates (from Drab.Element for example) when broadcasting.</p>
</blockquote>
</aside>
<p>Actually what I do is just register my commanders to a global pubsub and broadcast to them to let them merge however is appropriate for the given commander (it’s only a single function).</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="98496" 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/drab-remote-controlled-frontend-framework-for-phoenix/3277/415">Post #414</a>
	                </div>
	            </div>
              <div id="likers-container-98496" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="98496"
                     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 #414"></div>
  </section>
</div>
    <div class="postbit" id="98570" data-post-id="98570">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Guessing helped me!</p>
<p>It was a rabbit hole of upgrades to get it working, but once I bumped Phoenix, Erlang, Distillery, Elixir, and Drab to the latest and greatest versions, things function again. Release is imminent - thx!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="98570" 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/drab-remote-controlled-frontend-framework-for-phoenix/3277/416">Post #415</a>
	                </div>
	            </div>
              <div id="likers-container-98570" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="98570"
                     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 #415"></div>
  </section>
</div>
    <div class="postbit" id="98970" data-post-id="98970">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Hey Again.<br>
I am trying to create a channel via Drab. I think I am doing it right?</p>
<p>On the frontend I call<br>
ch = Drab.socket.channel(“user:test”);<br>
ch.join();<br>
but Chrome says “Uncaught ReferenceError: Drab is not defined”</p>
<p>I have Drab Client run setup after my app.js as per docs.<br>
&lt;%= Drab.Client.run(<span class="mention">@conn</span>) %&gt;</p>
<p>Do I need to do something else to get the user to join a channel?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="98970" 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/drab-remote-controlled-frontend-framework-for-phoenix/3277/417">Post #416</a>
	                </div>
	            </div>
              <div id="likers-container-98970" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="98970"
                     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 #416"></div>
  </section>
</div>
    <div class="postbit" id="98993" data-post-id="98993">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="grych" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/grych/120/5610_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  grych
                    <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 class="user-title">
									<span>Creator of Drab</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Hi <a class="mention" href="/u/doogs" rel="nofollow">@doogs</a>,<br>
I believe the issue is that you need to call <code>Drab.socket.channel()</code> <strong>after</strong> <code>&lt;%= Drab.Client.run(@conn) %&gt;</code> - this function injects the JS into the browser.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="98993" 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/drab-remote-controlled-frontend-framework-for-phoenix/3277/418">Post #417</a>
	                </div>
	            </div>
              <div id="likers-container-98993" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="98993"
                     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 #417"></div>
  </section>
</div>
    <div class="postbit" id="99088" data-post-id="99088">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>But if you need to call Clent.run after the app.js, how would I be able to connect to a channel when inside another page template/controller, as all layouts will load before the app.js which is at the bottom of the site layout.</p>
<p>I tried putting the code after the Client.run and it still didnt work. -<br>
Uncaught TypeError: Cannot read property ‘channel’ of undefined</p>
<p>Even when I call it from browser console it says channel it isnt defined.<br>
TypeError: Cannot read property ‘channel’ of undefined</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="99088" 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/drab-remote-controlled-frontend-framework-for-phoenix/3277/419">Post #418</a>
	                </div>
	            </div>
              <div id="likers-container-99088" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="99088"
                     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 #418"></div>
  </section>
</div>
    <div class="postbit" id="99111" data-post-id="99111">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="grych" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/grych/120/5610_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  grych
                    <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 class="user-title">
									<span>Creator of Drab</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I will need more info here.<br>
Can you show us the exact code you are doing?<br>
Can you check the page source to see if the Drab’s code has been inserted correctly? Also, please just type “Drab” in the console to see if the object has been initialized correctly. There are cases when Drab JS will not be generated - for example, when commander is missing.</p>
<p>Why do you need your own channel at the first place? I am asking because it might be a XY problem.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="99111" 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/drab-remote-controlled-frontend-framework-for-phoenix/3277/420">Post #419</a>
	                </div>
	            </div>
              <div id="likers-container-99111" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="99111"
                     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 #419"></div>
  </section>
</div>
    <div class="postbit" id="99115" data-post-id="99115">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Thanks, appreciate any help as I am stuck on this one.</p>
<p>So basically, I have a system where Staff members sign in to see their Companies dashboard.<br>
So Each company has data, and all Staff of that Company see the same data in their dashboard.<br>
This data can change at any time.<br>
Ideally I would like to be able to broadcast this assigns data to the Company channel to update all the Staff.<br>
That way I dont have to run exec_elixir from every browser, every second looking for updates. That way I wouldn’t have so many queries running.</p>
<p>When i do “Drab” in console I see that the object is initialised.<br>
But whenever I cal Drab.socket.channel I get the undefined issue.<br>
I have a Commander setup for the controller, and when I use the exec_elixir this updates the assigns correctly.</p>
<p>I used the Drab installer, and checked all those settings from the manual setup, and all looks to be okay.<br>
I am not sure what else to do. Is there any other Socket or Channel Config?<br>
What code would you like to see?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="99115" 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/drab-remote-controlled-frontend-framework-for-phoenix/3277/421">Post #420</a>
	                </div>
	            </div>
              <div id="likers-container-99115" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="99115"
                     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 #420"></div>
  </section>
</div>
    <div class="postbit" id="99122" data-post-id="99122">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="grych" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/grych/120/5610_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  grych
                    <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 class="user-title">
									<span>Creator of Drab</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Congratulations, you’ve found a bug!<br>
Looks like noone used this functionality before <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"> it only shows how irrele^H^H^H^H^H^Himportant was it. I will fix it in the next release.</p>
<p>But, it is probably because you don’t need it! In Drab, you subscribe to additional topics at the server-side. See <a href="https://hexdocs.pm/drab/Drab.Commander.html#subscribe/2" class="inline-onebox" rel="noopener nofollow ugc">Drab.Commander – drab v0.10.5</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="99122" 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/drab-remote-controlled-frontend-framework-for-phoenix/3277/422">Post #421</a>
	                </div>
	            </div>
              <div id="likers-container-99122" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="99122"
                     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 #421"></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/3277/load_more?page=43">Load more posts (68 remaining)</a>
</div></template></turbo-stream>