{"id":16682313,"url":"https://github.com/jpsim/mpcmultipeerclient","last_synced_at":"2025-04-09T23:12:51.212Z","repository":{"id":15935574,"uuid":"18677649","full_name":"jpsim/MPCMultipeerClient","owner":"jpsim","description":"Wrapper around MultipeerConnectivity to simplify common use cases","archived":false,"fork":false,"pushed_at":"2014-04-11T14:52:47.000Z","size":160,"stargazers_count":15,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-09T23:12:44.786Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jpsim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-11T14:52:21.000Z","updated_at":"2016-09-17T06:47:19.000Z","dependencies_parsed_at":"2022-09-24T05:50:35.212Z","dependency_job_id":null,"html_url":"https://github.com/jpsim/MPCMultipeerClient","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpsim%2FMPCMultipeerClient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpsim%2FMPCMultipeerClient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpsim%2FMPCMultipeerClient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpsim%2FMPCMultipeerClient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpsim","download_url":"https://codeload.github.com/jpsim/MPCMultipeerClient/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125589,"owners_count":21051770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T14:07:00.304Z","updated_at":"2025-04-09T23:12:51.186Z","avatar_url":"https://github.com/jpsim.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MPCMultipeerClient\n\nWrapper around `MultipeerConnectivity` to simplify common use cases.\n\n**VERY EARLY WORK IN PROGRESS, USE AT YOUR OWN PERIL.**\n\n## Usage\n\nSee the `remotecam` demo project for more usage examples.\n\n### Advertise and respond to connect/disconnect/events\n\n```objective-c\n[MPCMultipeerClient advertiseWithServiceType:@\"myservice\"];\n[MPCMultipeerClient onConnect:^(MCPeerID *peerID) {\n    // Connected :)\n}];\n[MPCMultipeerClient onDisconnect:^(MCPeerID *peerID) {\n    // Disconnected :(\n}];\n[MPCMultipeerClient onEvent:@\"doTheThing\" runBlock:^(MCPeerID *peerID, id object) {\n    // Do the thing\n}];\n```\n\n### Browse and send events\n\n```objective-c\n[MPCMultipeerClient advertiseWithServiceType:@\"myservice\"];\n[MPCMultipeerClient onConnect:^(MCPeerID *peerID) {\n    [MPCMultipeerClient sendEvent:@\"doTheThing\" withObject:nil];\n}];\n```\n\n## TODO\n\n* Integrate NSStreams\n* Allow MCSessionSendDataUnreliable\n* Allow setting encryptionPreference\n* Master election\n* Use better unique peer ID than their displayName\n\n## License\n\nMIT Licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpsim%2Fmpcmultipeerclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpsim%2Fmpcmultipeerclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpsim%2Fmpcmultipeerclient/lists"}