You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: primary_socket.rb
    path of file: ./repos/mongo-ruby-driver/spec/support
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
# rubocop:todo all

module PrimarySocket
  def sel
    
  def self.included(base)
    base.class_eval do

      let(:primary_server) do
        client.cluster.next_primary
      end

      let(:primary_connection) do
        connection = primary_server.pool.check_out
        connection.connect!
        primary_server.pool.check_in(connection)
        connection
      end

      let(:primary_socket) do
        primary_connection.send(:socket)
      end
    end
  end