views:

13

answers:

0

Hi,

I'm using Faye for pubsub along with Sinatra.

Presently, I'm using Faye:RackAdapter in my config.ru like so:

use Faye::RackAdapter, :mount => '/faye', :timeout => 45

I'd like to be able to add extensions to the instance of Faye::Server. I've tried to retrieve the server object and manipulate it from Sinatra, but it doesn't appear to work:

env['fay.client'].endpoint.add_extension(SomeExtension.new)

Thanks for the help!