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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
David Moulton
August 14, 2012
Programming
97
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
110
Other Decks in Programming
See All in Programming
SODA - FACT BOOK(JP)
sodainc
1
40k
protojson における文字化けの扱い
kazuki1023
0
430
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
380
動画プレイヤーはなぜカクつくのか 〜Flutterのレンダリングとネイティブの境界を解剖する〜
naruogram
0
340
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
1
210
Distance field of Julia set
kinakomoti321
0
330
Vapor Mode でアクセシビリティは 壊れないか検証した話
fuqda
1
350
LLM 101: Exploring LLMs, Starting with Tokens.
dalinaum
0
110
Lambda durable functionsでHuman in the Loopを楽に…楽に……
har1101
2
320
仕様駆動開発入門 (何を作るかを先に決めて渡す) | 目指せ Kiro マスター 05
inariku
PRO
2
160
AI Augmentation Techniques with Liberty
ivargrimstad
1
490
止まらない比較を止める — 余帰納法で無限ストリームを比べる
tarao
0
170
Featured
See All Featured
The Curious Case for Waylosing
cassininazir
1
610
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
900
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3.1k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
480
Mobile First: as difficult as doing things right
swwweet
225
10k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
530
Reality Check: Gamification 10 Years Later
codingconduct
0
2.4k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.2k
Evolving SEO for Evolving Search Engines
ryanjones
0
360
Amusing Abliteration
ianozsvald
1
390
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k