Example code from my talk about adding realtime functionality to PHP applications using Node and Redis.