lib/angelo/base.rb in angelo-0.4.0 vs lib/angelo/base.rb in angelo-0.4.1

- old
+ new

@@ -126,10 +126,14 @@ def on_pong &block Responder::Websocket.on_pong = block end + def content_type type + Responder.content_type type + end + end # Make the DSL methods available to subclass-level code. # main.rb makes them available to the top level. @@ -175,13 +179,9 @@ def sses reject = true @sses ||= Stash::SSE.new server @sses.reject! &:closed? if reject @sses - end - - def content_type type - Responder.content_type type end def run! _addr = addr, _port = port, options = {} run _addr, _port, options, true end