Romain added hangup

This commit is contained in:
Ethan Fraenkel
2018-09-04 14:50:44 +02:00
parent a48f955914
commit 95d0c2f5cd
9 changed files with 51 additions and 3 deletions

View File

@@ -14,6 +14,13 @@ class ChatRoomsController < ApplicationController
ActionCable.server.broadcast "chat_room_#{params[:room]}", session_params
end
def destroy
# chat_room = ChatRoom.find(params[:id])
# chat_room.destroy
ActionCable.server.broadcast "chat_room_#{params[:id]}", { hangUp: true }
head :ok
end
private
def session_params