module Roda::RodaPlugins::Websockets

def self.configure(app, opts=OPTS)

See RequestMethods#websocket for additional supported options.

Possible options: :thin, :rainbows, :goliath
requires an adapter to work with the webserver.
value, used to set the adapter to load, if Faye
:adapter :: Calls Faye::WebSocket.load adapter with the given

options are handled separately.
passed to Faye:WebSocket.new, except that the following
Add default opions used for websockets. These options are
def self.configure(app, opts=OPTS)
  opts = app.opts[:websockets_opts] = (app.opts[:websockets_opts] || {}).merge(opts || {})
  if adapter = opts.delete(:adapter)
    WebSocket.load_adapter(adapter.to_s)
  end
  opts.freeze
end