Skip to content

Instantly share code, notes, and snippets.

View mvaled's full-sized avatar
🏠
Working

Manuel Vázquez Acosta mvaled

🏠
Working
  • Merchise Autrement
  • Cuba
  • X @mvaled
View GitHub Profile
@mvaled
mvaled / redis_pubsub_demo.rb
Created July 2, 2011 22:28 — forked from pietern/redis_pubsub_demo.rb
Simple demo to showcase Redis PubSub with EventMachine (modified to work with latests Cramp)
# Author: Pieter Noordhuis
# Modified (very lightly) by Manuel Vázquez Acosta in order to make it work with Cramp after commit https://github.com/lifo/cramp/commit/968e9030f253f74c94562555f3244aad4fe03e89
# Description: Simple demo to showcase Redis PubSub with EventMachine
#
# Update 7 Oct 2010:
# - This example does *not* appear to work with Chrome >=6.0. Apparently,
# the WebSocket protocol implementation in the cramp gem does not work
# well with Chrome's (newer) WebSocket implementation.
#
#