lib/ruby_fs/stream.rb in ruby_fs-0.3.0 vs lib/ruby_fs/stream.rb in ruby_fs-0.3.1
- old
+ new
@@ -159,9 +159,11 @@
@command_callbacks.pop.call CommandReply.new(headers)
when 'auth/request'
command "auth #{@secret}" do
command! "event json ALL" if @events
end
+ when 'text/disconnect-notice'
+ terminate
else
raise "Unknown request type received (#{headers.inspect})"
end
end