lib/em-midori/eventsource.rb in em-midori-0.1.3 vs lib/em-midori/eventsource.rb in em-midori-0.1.4
- old
+ new
@@ -10,10 +10,10 @@
end
# Send data and close the connection
# @param [String] data data to be sent
def send(data)
- raise Midori::Error::EventSourceTypeError unless data.is_a?String
+ raise Midori::Exception::EventSourceTypeError unless data.is_a? String
@connection.send_data(data.split("\n").map {|str| "data: #{str}\n"}.join + "\n")
@connection.close_connection_after_writing
end
end