multipeer-connectivity

Discover and connect nearby Apple devices using MultipeerConnectivity APIs.

4|1|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/AutisticAF/claude-code-apple-dev-plugin --skill multipeer-connectivity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: multipeer-connectivity
Source: https://github.com/AutisticAF/claude-code-apple-dev-plugin/tree/main/skills/multipeer-connectivity
Command: npx skills add https://github.com/AutisticAF/claude-code-apple-dev-plugin --skill multipeer-connectivity

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

MultipeerConnectivity enables easy discovery and connection of nearby Apple devices to support local, device-to-device collaboration and data transfer without internet access.

Core Features & Use Cases

  • Discover nearby peers and establish MCSession connections
  • Transfer data, files, and streams between peers
  • Build local multiplayer or collaborative experiences with Bonjour service advertising

Quick Start

Instantiate a peer, start advertising, and browse for peers to establish a local multiplayer session.

Frequently Asked Questions about multipeer-connectivity

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I discover and connect nearby Apple devices for local multiplayer?

To discover and connect nearby Apple devices for local multiplayer, instantiate an MCPeerID, start advertising with MCNearbyServiceAdvertiser, and browse with MCNearbyServiceBrowser to establish an MCSession connection.

What is peer-to-peer data transfer and when do I need it for nearby devices?

Peer-to-peer data transfer for nearby devices enables direct device-to-device collaboration without internet access. You need it when building local multiplayer games or collaborative apps that must share data, files, or streams locally.

Can I use Bonjour service advertising to establish an MCSession without internet?

Yes, you can use Bonjour service advertising to establish an MCSession without internet. MultipeerConnectivity relies on Bonjour to discover nearby peers and set up device-to-device connections for local collaboration.

How do I handle invitations and manage session state for nearby peer connections?

To handle invitations and manage session state for nearby peer connections, implement the delegate methods for MCNearbyServiceBrowser invitations and track MCSession state transitions to manage connected, connecting, and disconnected peers.

Does peer-to-peer data transfer work for transferring files and streams between peers?

Yes, peer-to-peer data transfer works for transferring files and streams between peers. Once an MCSession is established, you can send data, files, and byte streams directly between connected nearby devices.

What are the limitations of using MultipeerConnectivity for local device discovery?

A limitation of using MultipeerConnectivity for local device discovery is that it requires nearby Apple devices and does not function over the internet, restricting its use to local, device-to-device collaboration and data transfer scenarios.