lib/faye/websocket/api.rb in faye-websocket-0.7.0 vs lib/faye/websocket/api.rb in faye-websocket-0.7.1
- old
+ new
@@ -32,10 +32,10 @@
@driver.on(:open) { |e| open }
@driver.on(:message) { |e| receive_message(e.data) }
@driver.on(:close) { |e| finalize(e.reason, e.code) }
@driver.on(:error) do |error|
- event = Event.new('error')
+ event = Event.new('error', :message => error.message)
event.init_event('error', false, false)
dispatch_event(event)
end
if @ping