Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Faye URUG Presentation
Search
David Moulton
August 14, 2012
Programming
98
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Faye URUG Presentation
Presentation on the basics of using the Faye gem in Ruby on Rails.
David Moulton
August 14, 2012
Transcript
13 slides
David Moulton @dmoulton
[email protected]
Snaga on IRC
About Me
2 of these
Only 1 of these
Too many of these
Other stuff I've been known to do
Faye is a publish-subscribe messaging system based on the Bayeux
protocol. It provides message servers for Node. js and Ruby, and clients for use on the server and in all major web browsers.
How? Server publishes to named channels Client subscribes to channels
Rails Faye Setup Add to Gemfile: private_pub thin Create private_pub.ru
rackup faye.ru -s thin -E production
Assets application.js //= require private_pub
Basics Publishing PrivatePub.publish_to(<CHANNEL>,<JAVASCRIPT>) Subscribing <%= subscribe_to <CHANNEL> %>
Codes
http://faye.jcoglan.com/ https://github.com/faye/faye http://railscasts.com/episodes/260-messaging-with-faye http://railscasts.com/episodes/316-private-pub? view=asciicast http://svn.cometd.com/trunk/bayeux/bayeux.html https://github.com/ryanb/private_pub https://github.com/dmoulton/fayedemo
More Decks by David Moulton
See All by David Moulton
OpenWest Ionic Presentation
dmoulton
2
85
Rails Caching Basics
dmoulton
0
120
Other Decks in Programming
See All in Programming
読みやすい!と評判(?)の発表の準備にかける私のこだわり
shoheimitani
0
170
観測者から当事者へ、AI 時代にドメインへ深入りする知識と技術 / From Observer to Practitioner: Going Deep into Domains in the Age of AI
nrslib
1
130
ruby/uri meets WHATWG
jinroq
0
190
Going Full Circle with Virtual Graphs and Relational Databases
michaelsimons
1
120
眠らない開発チームの作り方
biwakonbu
0
180
AWS CDKを理解するために公式の定義を深掘って解説してみる / Understanding AWS CDK by Digging into Its Official Definition
akihisaikeda
3
360
初学者向け 分散トレーシングとDatadog
mtaka1222
0
120
はじめてのPLATEAU
nokonoko1203
1
680
Compiling Your Language to WasmGC & Friends
tanishiking
0
970
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
1
220
Promiseの向こう側へコンテキストを届ける ― proposal-async-context
seriseri
0
1.1k
SODA - FACT BOOK(EN)
sodainc
1
310
Featured
See All Featured
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Rails Girls Zürich Keynote
gr2m
96
14k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
Done Done
chrislema
187
17k
The World Runs on Bad Software
bkeepers
PRO
72
12k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.2k
Designing Experiences People Love
moore
143
24k
Building the Perfect Custom Keyboard
takai
2
980
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
23k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
650
Visualization
eitanlees
153
17k
Mobile First: as difficult as doing things right
swwweet
225
10k