Merge branch 'master' into hangup
This commit is contained in:
commit
73283b1fa3
|
@ -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({})
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<button id="test-btn" class="btn btn-primary">Test Connection</button>
|
||||
<div id="join-btn" data-room="<%= @chat_room.id %>"></div>
|
||||
|
||||
<div id="chatroom-hook" data-chatroom-id='<%= @chat_room.id %>'></div>
|
||||
|
|
Loading…
Reference in New Issue