lib/mongo/auth/base.rb
# Performs a two-step conversation on the given connection.
#
# The implementation is very similar to +converse_multi_step+, but
# conversations using this method do not involve the server replying
# with {done: true} to indicate the end of the conversation.
Performs a two-step conversation on the given connection.
The implementation is very similar to +converse_multi_step+, but
conversations using this method do not involve the server replying
with {done: true} to indicate the end of the conversation.
Performs a two - step conversation on the given connection . The implementation is very similar to + converse_multi_step + but conversations using this method do not involve the server replying with { done : true } to indicate the end of the conversation .
def converse_2_step(connection, conversation)
        msg = conversation.start(connection)
        reply_document = dispatch_msg(connection, conversation, msg)
        msg = conversation.continue(reply_document, connection)
        dispatch_msg(connection, conversation, msg)
      end
def converse_2_step ( connection , conversation ) msg = conversation . start ( connection ) reply_document = dispatch_msg ( connection , conversation , msg ) msg = conversation . continue ( reply_document , connection ) dispatch_msg ( connection , conversation , msg ) end
Performs a two-step conversation on the given connection.
Performs a two - step conversation on the given connection .
connection
conversation