Cramp chat using Redis Pub/Sub + WebSockets

This is a proof-of-concept application to showcase Cramp’s integration with Redis Pub/Sub + WebSockets.

Running the application

Make sure you have Redis up and running.

$ bundle install
$ bundle exec thin —timeout 0 start

You should now see the application running at http://0.0.0.0:3000

Credits

This is an updated version of the Cramp application originally written by Pieter Noordhuishttps://gist.github.com/348262



< rule =evenoddd =M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-。 45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22 -2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z / path> 使用Redis Pub / Sub + WebSockets

进行聊天

这是一个概念验证应用程序,用于展示Cramp与Redis Pub / Sub + WebSockets的集成。

运行应用程序

确保您已 Redis 启动并运行。

$ bundle install
$ bundle exec thin -timeout 0 start

您现在应该看到运行在 http://0.0.0.0:3000 的应用程序

信用




相关问题推荐