{"id":20926215,"url":"https://github.com/val-bubbleflat/laravel-echo-ios","last_synced_at":"2026-03-05T21:32:35.457Z","repository":{"id":55548525,"uuid":"107244788","full_name":"val-bubbleflat/laravel-echo-ios","owner":"val-bubbleflat","description":"A wrapper for Laravel Echo in Swift","archived":false,"fork":false,"pushed_at":"2020-12-22T15:51:55.000Z","size":20,"stargazers_count":21,"open_issues_count":13,"forks_count":18,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-03T15:27:11.237Z","etag":null,"topics":["laravel","laravel-echo","socket","swift"],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/val-bubbleflat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-17T09:11:36.000Z","updated_at":"2024-12-13T08:45:10.000Z","dependencies_parsed_at":"2022-08-15T03:00:40.791Z","dependency_job_id":null,"html_url":"https://github.com/val-bubbleflat/laravel-echo-ios","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/val-bubbleflat/laravel-echo-ios","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/val-bubbleflat%2Flaravel-echo-ios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/val-bubbleflat%2Flaravel-echo-ios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/val-bubbleflat%2Flaravel-echo-ios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/val-bubbleflat%2Flaravel-echo-ios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/val-bubbleflat","download_url":"https://codeload.github.com/val-bubbleflat/laravel-echo-ios/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/val-bubbleflat%2Flaravel-echo-ios/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30150439,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T21:15:50.531Z","status":"ssl_error","status_checked_at":"2026-03-05T21:15:11.173Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["laravel","laravel-echo","socket","swift"],"created_at":"2024-11-18T20:37:16.456Z","updated_at":"2026-03-05T21:32:35.426Z","avatar_url":"https://github.com/val-bubbleflat.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Echo IOS\n\nThis is a project by [Bubbleflat : find your perfect roommate and flatsharing](https://bubbleflat.com) \n\nThis project is wrapper to use [Laravel Echo](https://github.com/laravel/echo) in Swift IOS project\n\nThis only work for **socket.io**, NOT FOR PUSHER yet !\n\n## Installation\n\nThis module can be imported with CocoaPods\n\n```\npod 'LaravelEchoIOS'\n```\n\n## Example\n\nFirst, you need to import the framework :\n\n```Swift\nimport LaravelEchoIOS\n```\n\nThen you can use it like in javascript ( but you need to wait for the socket to be connected )\n\n```Swift\nlet token = \"Auth token\"\nlet e : Echo = Echo(options: [\"host\":\"http://localhost:6001\", \"auth\": [\"headers\": [\"Authorization\": \"Bearer \" + token]]])\n\ne.connected(){ data, ack in\n\n    print(\"CONNECTED\")\n\n    e.join(channel: \"conversation.243\").listen(event: \".NewMessage\", callback: { data, ack in\n\n        print(data)\n\n    })\n\n}\n```\n\n## Documentation\n\nSee [full Echo documentation](https://laravel.com/docs/5.5/broadcasting) for all available methods\n\nAll callback must been use like this : \n\n```Swift\ne.connected(){ data, ack in\n\n  // Do something when call\n\n}\n```\n\nOr with a function like this\n\n```Swift\nfunc listener(data: [Any], ack: SocketAckEmitter)\n```\n\n\n**here, joining, leaving are not available yet**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fval-bubbleflat%2Flaravel-echo-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fval-bubbleflat%2Flaravel-echo-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fval-bubbleflat%2Flaravel-echo-ios/lists"}