Method: Mongo::Server::Monitor::Connection#dispatch

Defined in:
lib/mongo/server/monitor/connection.rb

#dispatch(message) ⇒ Protocol::Message

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Sends a message and returns the result.

Parameters:

Returns:

Since:

  • 2.0.0



97
98
99
# File 'lib/mongo/server/monitor/connection.rb', line 97

def dispatch(message)
  dispatch_bytes(message.serialize.to_s)
end