Update socket.rb