What was the messianic secret?

Wrede in 1901 said Jesus never said He was Messiah - Church was embarrassed, faked incidents where matter would come up, but He asked for secrecy. Wrede appeals to raising of daughter of Jairus as clear case - anyone could see she was alive. But Jesus needed only enough time of silence to slip out and get on way to next city, so crowd would not proclaim Him King Messiah.