Direct connect multiplayer

Is there a way to direct connect 2 iOS devices for multiplayer? There is an example of this in an Air Hockey game I was playing. It looks for devices in range on wifi.

Here is the manual to connect IOS controllers in your game

That looks promising. Thanks!