lib/blather/stream.rb in blather-0.4.16 vs lib/blather/stream.rb in blather-0.5.0
- old
+ new
@@ -46,11 +46,13 @@
# end
#
# client = Blather::Stream.start MyClient.new, "jid@domain/res", "pass"
# client.write "[pure xml over the wire]"
class Stream < EventMachine::Connection
+ # Connection not found
class NoConnection < RuntimeError; end
+ # @private
STREAM_NS = 'http://etherx.jabber.org/streams'
attr_accessor :password
attr_reader :jid
# Start the stream between client and server