add socket.ref and socket.unref