What is the meaning of Matey?

Sociable or friendly.

diminutive of mate, friend.

A fellow sailor; often used affectedly, especially when portraying a pirate.

A dockyard worker.

obsolete spelling of matei

Source: wiktionary.org