diff options
author | Logan Hunt <loganhunt@simponic.xyz> | 2022-04-14 13:56:10 -0600 |
---|---|---|
committer | Logan Hunt <loganhunt@simponic.xyz> | 2022-04-14 13:56:10 -0600 |
commit | db7c2321cd0af59f9e810e84c7d4eb83ec416458 (patch) | |
tree | 2e559978cd4c7b4585c1c36e2cf8642aac94bd2b /lib/aggiedit_web/live/post_live/show.html.heex | |
parent | cc58a376a94c28532121fca2e1ab1d0e7de11046 (diff) | |
download | aggiedit-db7c2321cd0af59f9e810e84c7d4eb83ec416458.tar.gz aggiedit-db7c2321cd0af59f9e810e84c7d4eb83ec416458.zip |
Add initial channels for posts
Diffstat (limited to 'lib/aggiedit_web/live/post_live/show.html.heex')
-rw-r--r-- | lib/aggiedit_web/live/post_live/show.html.heex | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/aggiedit_web/live/post_live/show.html.heex b/lib/aggiedit_web/live/post_live/show.html.heex index ba71c75..107a3a6 100644 --- a/lib/aggiedit_web/live/post_live/show.html.heex +++ b/lib/aggiedit_web/live/post_live/show.html.heex @@ -30,3 +30,8 @@ <span><%= live_patch "Edit", to: Routes.post_show_path(@socket, :edit, @room, @post), class: "button" %></span> | <span><%= live_redirect "Back", to: Routes.post_index_path(@socket, :index, @room) %></span> + +<script> + window.userSocket.connect(); + window.RoomChat.init(window.userSocket, <%= @post.id %>) +</script> |