Project

General

Profile

« Previous | Next » 

Revision eea1abf0

Added by Marc Dequènes about 14 years ago

  • ID eea1abf0fe5d317e0f1827973f19859d14992ca3

[evol] ConversationThread: added convenience method for notification

View differences:

lib/cyborghood/cyborg/conversation.rb
@conversation.protocol.send_request_call(self, *args, &callback)
end
# convenience method
def notify(event_name, event_info)
@conversation.protocol.send_notify_event(self, event_name, event_info)
end
def register_callback(message, callback)
@callbacks[message.action_id] = callback
end

Also available in: Unified diff