Private Pub makes it easier than ever to publish and subscribe to real-time events in a Rails app. You can use publish_to with a block of JavaScript or supply a hash for use with JSON.
There are multiple ways to add push functionality to an application, including Pushr and Pub-Nub, which are quite elegant and simple solutions. There are also some more advanced options. In this article, I’m going to show you how to use Faye, a messaging system that runs on both Ruby and Node.js. Step 1 - Get Everything Ready We’re going build a simple chat service. Now, Ryan Bates covered this on
Resources Faye Episode 136: jQuery Node.js Socket.io Cramp async_sinatra Goliath Full episode source code Update February 15, 2013: Thanks to Matthew Robertson for pointing out there is a security issue with this episode. The message auth_token needs to be cleared out in an outgoing callback to avoid leaking it to the client. See below for the code. Note: The Faye Rack server must be run in produc
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く