diff --git a/app/javascript/packs/chatrooms.js b/app/javascript/packs/chatrooms.js index f3c433c..787598c 100644 --- a/app/javascript/packs/chatrooms.js +++ b/app/javascript/packs/chatrooms.js @@ -40,13 +40,13 @@ hangUpIcon.addEventListener('click', event => { }) // Testing ActionCable -// const testBtn = document.getElementById('test-btn') -// testBtn.addEventListener('click', event => { -// fetch(`/chat_rooms/${chatroomId}/cable_testing` , { -// method: 'POST', -// body: JSON.stringify({}) -// }) -// }) +const testBtn = document.getElementById('test-btn') +testBtn.addEventListener('click', event => { + fetch(`/chat_rooms/${chatroomId}/cable_testing` , { + method: 'POST', + body: JSON.stringify({}) + }) +}) diff --git a/app/views/chat_rooms/show.html.erb b/app/views/chat_rooms/show.html.erb index d96f8a7..b10234e 100644 --- a/app/views/chat_rooms/show.html.erb +++ b/app/views/chat_rooms/show.html.erb @@ -1,3 +1,4 @@ +