0.01
No release in over a year
The roda-websockets gem integrates async-websockets into the roda web toolkit.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies

Development

Runtime

~> 0.33
~> 3.0
 Project Readme

roda-websockets

The roda-websockets gem integrates async-websockets into the roda web toolkit. Use this plugin for asynchronous websockets alongside roda and falcon.

Installation

gem install roda-websockets

Source Code

Source code is available on GitHub at https://github.com/havenwood/roda-websockets

Usage

roda-websockets requires that you use Falcon as your web server in order to establish asynchronous websocket connections.

falcon serve --count 1

roda-websockets is a roda plugin, so you need to load it into your roda application similar to other plugins:

class App < Roda
  plugin :websockets
end

In your routing block, you can use r.websocket to pass the routing to a websocket connection.

r.websocket do |connection|
  # ...
end