Class: SockJS::Transports::WelcomeScreen
- Defined in:
- lib/sockjs/transports/welcome_screen.rb
Instance Attribute Summary
Attributes inherited from Endpoint
Attributes included from Endpoint::ClassMethods
Instance Method Summary collapse
Methods inherited from Endpoint
#build_error_response, #build_response, #call, #empty_string, #error_content_type, #format_frame, #handle, #handle_http_error, #handle_request, #initialize, #inspect, #response_class
Methods included from Endpoint::ClassMethods
#add_route, #add_routes, #endpoints, #register, #route_conditions, #routing_prefix
Constructor Details
This class inherits a constructor from SockJS::Endpoint
Instance Method Details
#setup_response(request, response) ⇒ Object
10 11 12 13 14 |
# File 'lib/sockjs/transports/welcome_screen.rb', line 10 def setup_response(request, response) response.set_content_type(:plain) response.status = 200 response.write("Welcome to SockJS!\n") end |