WebRtc chat app with Rails 6

조회수 159회
읽지 않은 첫 메시지로 건너뛰기

fugee ohu

읽지 않음,
2019. 10. 10. 오후 9:30:0919. 10. 10.
받는사람 Ruby on Rails: Talk
I wanna use channel for 2 users to chat privately with each other but channels are hard coded into the app To build for 2 people to chat privately I would have to create channels on the fly because if 2 people chat in a channel and then 2 other people begin a chat in the same channel then there would be 4 users in the channel What to do?

Rob Jonson

읽지 않음,
2019. 10. 11. 오전 7:11:1419. 10. 11.
받는사람 Ruby on Rails: Talk
https://lmgtfy.com/?q=how+to+%20use+websockets+in+rails

and for those new to fugee who think this is a little harsh

I don't think you'll find a single question where the smallest amount of effort has been shown before he asks the group to do his work for him

fugee ohu

읽지 않음,
2019. 10. 11. 오전 7:28:2519. 10. 11.
받는사람 Ruby on Rails: Talk
You can disregard what you don't like Stay off my threads  You have no right to libel me in public forum where millions of people are reading You wanna have a popularity contest and divide a forum on personal grounds because you're a bad person

Walther Diechmann

읽지 않음,
2019. 10. 11. 오전 7:54:0019. 10. 11.
받는사람 Ruby
FWIW Rob is not libelling you - and I’m pretty sure he’s not rooting for a beauty pageant either ;)

it’s a simple google - and just a little bit of effort on your part: https://www.google.com/search?q=web+channel+rails

Channels are meant to be for ‘all’ to publish/subscribe to - but you could devise a way to narrow the channel like 

consumer.subscriptions.create({ channel: "ChatChannel", room: “A Room for me and my best pal Rob!" })


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3494b63c-48b3-477a-b27a-e74493b0a479%40googlegroups.com.

fugee ohu

읽지 않음,
2019. 10. 11. 오전 9:39:5619. 10. 11.
받는사람 Ruby on Rails: Talk
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonra...@googlegroups.com.


 I thought I'd be creating a channel called let's say "room" I'm surprised to see the room argument passed to subscriptions.create I guess I do have some more reading to do
메시지가 삭제되었습니다.

fugee ohu

읽지 않음,
2019. 10. 15. 오후 9:54:4919. 10. 15.
받는사람 Ruby on Rails: Talk
Thanks Can you show me where I would use the room: value pair elsewhere to limit the chat to the intended 2 users only

Rob Jonson

읽지 않음,
2019. 10. 17. 오전 1:09:1219. 10. 17.
받는사람 Ruby on Rails: Talk


On Tuesday, 15 October 2019 18:54:49 UTC-7, fugee ohu wrote:
Thanks Can you show me where I would use the room: value pair elsewhere to limit the chat to the intended 2 users only

guess what; The Rails Action Cable guide talks about authorization


I know it's pretty obscure, and not somewhere you would expect to look, but Google has your back too

fugee ohu

읽지 않음,
2019. 10. 18. 오전 4:47:2719. 10. 18.
받는사람 Ruby on Rails: Talk
Thanks Will read asap Working on the video part right now I had already decided to limit the participants of the text chat with a where filter to @messages= in the controller Does that sound about right?
전체답장
작성자에게 답글
전달
새 메시지 0개