Class: Async::WebSocket::Server
- Inherits:
-
Protocol::HTTP::Middleware
- Object
- Protocol::HTTP::Middleware
- Async::WebSocket::Server
- Includes:
- Protocol::WebSocket::Headers
- Defined in:
- lib/async/websocket/server.rb
Instance Method Summary collapse
- #call(request) ⇒ Object
-
#initialize(delegate, **options, &block) ⇒ Server
constructor
A new instance of Server.
Constructor Details
#initialize(delegate, **options, &block) ⇒ Server
Returns a new instance of Server.
17 18 19 20 21 22 |
# File 'lib/async/websocket/server.rb', line 17 def initialize(delegate, **, &block) super(delegate) = @block = block end |
Instance Method Details
#call(request) ⇒ Object
24 25 26 |
# File 'lib/async/websocket/server.rb', line 24 def call(request) Async::WebSocket::Adapters::HTTP.open(request, **, &@block) or super end |