Method: Moped::Connection#initialize

Defined in:
lib/moped/connection.rb

#initializeConnection

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.

Initialize the connection.

Examples:

Initialize the connection.

Connection.new

Since:

  • 1.0.0



71
72
73
74
# File 'lib/moped/connection.rb', line 71

def initialize
  @sock = nil
  @request_id = 0
end