lib/onstomp/interfaces/client_events.rb in onstomp-1.0.3 vs lib/onstomp/interfaces/client_events.rb in onstomp-1.0.4
- old
+ new
@@ -123,10 +123,10 @@
create_event_methods :receiving, :before, :after
# @endgroup
# Helpers for setting up connection events through a client
- [:established, :terminated, :died, :closed].each do |ev|
+ [:established, :terminated, :died, :closed, :blocked].each do |ev|
module_eval <<-EOS
def on_connection_#{ev}(&cb)
if connection
connection.on_#{ev}(&cb)
else