Class: Ji2p::Server::Api
- Inherits:
-
Object
- Object
- Ji2p::Server::Api
- Defined in:
- lib/ji2p/server/api.rb
Instance Method Summary collapse
-
#initialize ⇒ Api
constructor
A new instance of Api.
Constructor Details
#initialize ⇒ Api
Returns a new instance of Api.
7 8 9 10 11 12 |
# File 'lib/ji2p/server/api.rb', line 7 def initialize configure { set :server, :puma } #Faye::WebSocket.load_adapter('puma') @puma = Rack::Handler.get('puma') end |