# File lib/jabber4r/session.rb, line 50
50:     def accept
51:       case type
52:       when :subscribe
53:         @session.connection.send(Jabber::Protocol::Presence.gen_accept_subscription(@id, @from))
54:       when :unsubscribe
55:         @session.connection.send(Jabber::Protocol::Presence.gen_accept_unsubscription(@id, @from))
56:       else
57:         raise "Cannot accept a subscription of type #{type.to_s}"
58:       end
59:     end