what is the purpose of socket.set() then?