WebRtc chat app with Rails 6

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

WebRtc chat app with Rails 6

fugee ohu
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?

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4939e930-a5c8-4f28-9107-471557de2134%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: WebRtc chat app with Rails 6

Rob Jonson
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

On Friday, 11 October 2019 02:30:09 UTC+1, fugee ohu wrote:
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?

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/971617fe-9d56-4fdc-b792-329074c4ded9%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: WebRtc chat app with Rails 6

fugee ohu


On Friday, October 11, 2019 at 7:11:14 AM UTC-4, Rob Jonson wrote:
<a href="https://lmgtfy.com/?q=how+to+%20use+websockets+in+rails" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flmgtfy.com%2F%3Fq%3Dhow%2Bto%2B%2520use%2Bwebsockets%2Bin%2Brails\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEjgP8ELO0OJuwKCCZan1TP_dfw_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flmgtfy.com%2F%3Fq%3Dhow%2Bto%2B%2520use%2Bwebsockets%2Bin%2Brails\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEjgP8ELO0OJuwKCCZan1TP_dfw_w&#39;;return true;">https://lmgtfy.com/?q=how+to+%20use+websockets+in+rails

and for those new to fugee who think this is a little harsh
<a href="https://groups.google.com/forum/#!searchin/rubyonrails-talk/fugee%7Csort:date" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/forum/#!searchin/rubyonrails-talk/fugee%7Csort:date&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/forum/#!searchin/rubyonrails-talk/fugee%7Csort:date&#39;;return true;">https://groups.google.com/forum/#!searchin/rubyonrails-talk/fugee%7Csort:date

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

On Friday, 11 October 2019 02:30:09 UTC+1, fugee ohu wrote:
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?

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

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3494b63c-48b3-477a-b27a-e74493b0a479%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: WebRtc chat app with Rails 6

Walther Diechmann
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!" })


Den 11. okt. 2019 kl. 13.28 skrev fugee ohu <[hidden email]>:



On Friday, October 11, 2019 at 7:11:14 AM UTC-4, Rob Jonson wrote:
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

On Friday, 11 October 2019 02:30:09 UTC+1, fugee ohu wrote:
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?

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

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3494b63c-48b3-477a-b27a-e74493b0a479%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/E8121D57-6CD0-4867-8EFE-11A2B55EFAE0%40diechmann.net.
Reply | Threaded
Open this post in threaded view
|

Re: WebRtc chat app with Rails 6

fugee ohu


On Friday, October 11, 2019 at 7:54:00 AM UTC-4, walt wrote:
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: <a href="https://www.google.com/search?q=web+channel+rails" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/search?q\x3dweb+channel+rails&#39;;return true;" onclick="this.href=&#39;https://www.google.com/search?q\x3dweb+channel+rails&#39;;return true;">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!" })


Den 11. okt. 2019 kl. 13.28 skrev fugee ohu <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="-CK0DSbGCAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">fuge...@...>:



On Friday, October 11, 2019 at 7:11:14 AM UTC-4, Rob Jonson wrote:
<a href="https://lmgtfy.com/?q=how+to+%20use+websockets+in+rails" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flmgtfy.com%2F%3Fq%3Dhow%2Bto%2B%2520use%2Bwebsockets%2Bin%2Brails\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEjgP8ELO0OJuwKCCZan1TP_dfw_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flmgtfy.com%2F%3Fq%3Dhow%2Bto%2B%2520use%2Bwebsockets%2Bin%2Brails\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEjgP8ELO0OJuwKCCZan1TP_dfw_w&#39;;return true;">https://lmgtfy.com/?q=how+to+%20use+websockets+in+rails

and for those new to fugee who think this is a little harsh
<a href="https://groups.google.com/forum/#!searchin/rubyonrails-talk/fugee%7Csort:date" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/forum/#!searchin/rubyonrails-talk/fugee%7Csort:date&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/forum/#!searchin/rubyonrails-talk/fugee%7Csort:date&#39;;return true;">https://groups.google.com/forum/#!searchin/rubyonrails-talk/fugee%7Csort:date

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

On Friday, 11 October 2019 02:30:09 UTC+1, fugee ohu wrote:
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?

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

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="-CK0DSbGCAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/3494b63c-48b3-477a-b27a-e74493b0a479%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/3494b63c-48b3-477a-b27a-e74493b0a479%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/3494b63c-48b3-477a-b27a-e74493b0a479%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/3494b63c-48b3-477a-b27a-e74493b0a479%40googlegroups.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

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/0986decd-56a9-4c13-920d-e96e1ef65697%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: WebRtc chat app with Rails 6

fugee ohu
In reply to this post by Walther Diechmann


On Friday, October 11, 2019 at 7:54:00 AM UTC-4, walt wrote:
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: <a href="https://www.google.com/search?q=web+channel+rails" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/search?q\x3dweb+channel+rails&#39;;return true;" onclick="this.href=&#39;https://www.google.com/search?q\x3dweb+channel+rails&#39;;return true;">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!" })


Den 11. okt. 2019 kl. 13.28 skrev fugee ohu <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="-CK0DSbGCAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">fuge...@...>:



On Friday, October 11, 2019 at 7:11:14 AM UTC-4, Rob Jonson wrote:
<a href="https://lmgtfy.com/?q=how+to+%20use+websockets+in+rails" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flmgtfy.com%2F%3Fq%3Dhow%2Bto%2B%2520use%2Bwebsockets%2Bin%2Brails\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEjgP8ELO0OJuwKCCZan1TP_dfw_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flmgtfy.com%2F%3Fq%3Dhow%2Bto%2B%2520use%2Bwebsockets%2Bin%2Brails\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEjgP8ELO0OJuwKCCZan1TP_dfw_w&#39;;return true;">https://lmgtfy.com/?q=how+to+%20use+websockets+in+rails

and for those new to fugee who think this is a little harsh
<a href="https://groups.google.com/forum/#!searchin/rubyonrails-talk/fugee%7Csort:date" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/forum/#!searchin/rubyonrails-talk/fugee%7Csort:date&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/forum/#!searchin/rubyonrails-talk/fugee%7Csort:date&#39;;return true;">https://groups.google.com/forum/#!searchin/rubyonrails-talk/fugee%7Csort:date

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

On Friday, 11 October 2019 02:30:09 UTC+1, fugee ohu wrote:
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?

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

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="-CK0DSbGCAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/3494b63c-48b3-477a-b27a-e74493b0a479%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/3494b63c-48b3-477a-b27a-e74493b0a479%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/3494b63c-48b3-477a-b27a-e74493b0a479%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/3494b63c-48b3-477a-b27a-e74493b0a479%40googlegroups.com.


And then where is 'room: <value>' used elsewhere to achieve the filter

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/38fc8a8b-aac3-4996-80b9-32af94a32cb4%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: WebRtc chat app with Rails 6

fugee ohu
In reply to this post by Walther Diechmann
Thanks Can you show me where I would use the room: value pair elsewhere to limit the chat to the intended 2 users only

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/01de2ea9-d7c0-4dac-ad50-83ed4976366e%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: WebRtc chat app with Rails 6

Rob Jonson


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

https://lmgtfy.com/?q=rails+action+cable+how+to+limit+access

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/355a858c-5d25-4c63-82af-eaba60308df5%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: WebRtc chat app with Rails 6

fugee ohu


On Thursday, October 17, 2019 at 1:09:12 AM UTC-4, Rob Jonson wrote:


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

<a href="https://guides.rubyonrails.org/action_cable_overview.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fguides.rubyonrails.org%2Faction_cable_overview.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRs4DRflpoJw2cTNGFT1WAFco7UQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fguides.rubyonrails.org%2Faction_cable_overview.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRs4DRflpoJw2cTNGFT1WAFco7UQ&#39;;return true;">https://guides.rubyonrails.org/action_cable_overview.html 

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

<a href="https://lmgtfy.com/?q=rails+action+cable+how+to+limit+access" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flmgtfy.com%2F%3Fq%3Drails%2Baction%2Bcable%2Bhow%2Bto%2Blimit%2Baccess\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFOdOEGH6SveK6MoJAmorHe3wT70A&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flmgtfy.com%2F%3Fq%3Drails%2Baction%2Bcable%2Bhow%2Bto%2Blimit%2Baccess\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFOdOEGH6SveK6MoJAmorHe3wT70A&#39;;return true;">https://lmgtfy.com/?q=rails+action+cable+how+to+limit+access

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?

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/67f2665a-163f-4e66-80e5-83af9498897c%40googlegroups.com.