{"id":15015892,"url":"https://github.com/mike-north/ember-phoenix","last_synced_at":"2025-08-25T13:03:51.468Z","repository":{"id":4066354,"uuid":"51856081","full_name":"mike-north/ember-phoenix","owner":"mike-north","description":"Phoenix Framework integration and tooling for Ember.js apps","archived":false,"fork":false,"pushed_at":"2024-11-12T20:36:51.000Z","size":1592,"stargazers_count":138,"open_issues_count":22,"forks_count":25,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-01T12:04:58.380Z","etag":null,"topics":["elixir","emberjs","phoenix-framework","websocket"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/mike-north.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-16T17:54:26.000Z","updated_at":"2024-06-27T04:34:32.000Z","dependencies_parsed_at":"2024-01-16T21:58:38.851Z","dependency_job_id":"906ca9f8-7069-4872-af2d-b7d4563d42fe","html_url":"https://github.com/mike-north/ember-phoenix","commit_stats":{"total_commits":278,"total_committers":15,"mean_commits":"18.533333333333335","dds":"0.39568345323741005","last_synced_commit":"31b2c30bdf03914730037d9fb614247cc3cf858e"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike-north%2Fember-phoenix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike-north%2Fember-phoenix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike-north%2Fember-phoenix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike-north%2Fember-phoenix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mike-north","download_url":"https://codeload.github.com/mike-north/ember-phoenix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253717586,"owners_count":21952514,"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":["elixir","emberjs","phoenix-framework","websocket"],"created_at":"2024-09-24T19:48:06.650Z","updated_at":"2025-05-16T13:04:36.352Z","avatar_url":"https://github.com/mike-north.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ember-phoenix [![Build Status](https://travis-ci.org/mike-north/ember-phoenix.svg?branch=master)](https://travis-ci.org/mike-north/ember-phoenix) [![Ember Observer Score](https://emberobserver.com/badges/ember-phoenix.svg)](https://emberobserver.com/addons/ember-phoenix) [![npm version](https://badge.fury.io/js/ember-phoenix.svg)](https://badge.fury.io/js/ember-phoenix)\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/mike-north/ember-phoenix.svg)](https://greenkeeper.io/)\n\n## Installation\n\n```\nember install ember-phoenix\n```\n\n## Low-Level Use\n\nYou can import phoenix framework client-side utilities as an ES6 module\n\n```js\nimport { Socket } from 'ember-phoenix';\n\nlet socket = new Socket('/socket', {\n  logger: ((kind, msg, data) =\u003e {\n    console.log(`${kind}: ${msg}`, data);\n  })\n});\n```\n\n## Recommended Use\n\nBuild a service around a socket (you will usually have only one, since phoenix multiplexes for you)\n\n```js\n\nimport PhoenixSocket from 'ember-phoenix/services/phoenix-socket';\n\nexport default PhoenixSocket.extend({\n\n  init() {\n    // You may listen to open, \"close\" and \"error\"\n    this.on('open', () =\u003e {\n      console.log('Socket was opened!');\n    })\n  },\n\n  connect(/*url, options*/) {\n    const myjwt = \"abacnwih12eh12...\";\n    // connect the socket\n    this._super(\"wss://myhost.com/socket/mysocket\", {\n      params: {token: myjwt}\n    });\n\n    // join a channel\n    const channel = this.joinChannel(\"room:123\", {\n      nickname: \"Mike\"\n    });\n\n    // add message handlers\n    channel.on(\"notification\", () =\u003e _onNotification(...arguments));\n  },\n\n  _onNotification(message) {\n    alert(`Notification: ${message}`);\n  }\n});\n```\n\n## Contributing\n\n* `git clone` this repository\n* `npm install`\n* `bower install`\n\n## Running\n\n* `ember server`\n* Visit your app at http://localhost:4200.\n\n## Running Tests\n\n* `npm test` (Runs `ember try:testall` to test your addon against multiple Ember versions)\n* `ember test`\n* `ember test --server`\n\n## Building\n\n* `ember build`\n\nFor more information on using ember-cli, visit [http://www.ember-cli.com/](http://www.ember-cli.com/).\n\n## Copyright\n\n(c) 2016 Levanto Financial\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmike-north%2Fember-phoenix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmike-north%2Fember-phoenix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmike-north%2Fember-phoenix/lists"}