lib/angelo/server.rb in angelo-0.1.14 vs lib/angelo/server.rb in angelo-0.1.15

- old
+ new

@@ -45,11 +45,11 @@ def route! meth, connection, request rs = @base.routes[meth][request.path] if rs responder = rs.dup - responder.base = @base.new + responder.base = @base.new responder responder.connection = connection responder.request = request else Angelo.log connection, request, nil, :not_found connection.respond :not_found, DEFAULT_RESPONSE_HEADERS, NOT_FOUND @@ -89,9 +89,12 @@ def etag_for local_path fs = File::Stat.new local_path OpenSSL::Digest::SHA.hexdigest fs.ino.to_s + fs.size.to_s + fs.mtime.to_s end + + def sse_event *a; Base.sse_event *a; end + def sse_message *a; Base.sse_message *a; end end end