All Projects → mike-north → Ember Phoenix

mike-north / Ember Phoenix

Licence: mit
Phoenix Framework integration and tooling for Ember.js apps

Programming Languages

javascript
184084 projects - #8 most used programming language
elixir
2628 projects

Projects that are alternatives of or similar to Ember Phoenix

Websocket Rpc
WebSocket RPC library for .NET with auto JavaScript client code generation, supporting ASP.NET Core
Stars: ✭ 132 (-5.71%)
Mutual labels:  websocket
Super Rentals
Codebase for the Super Rentals official tutorial
Stars: ✭ 134 (-4.29%)
Mutual labels:  emberjs
Poloniex Api Node
Poloniex API client for REST and WebSocket API
Stars: ✭ 138 (-1.43%)
Mutual labels:  websocket
Httpexpect
End-to-end HTTP and REST API testing for Go.
Stars: ✭ 1,821 (+1200.71%)
Mutual labels:  websocket
Exchanges Php
This is a virtual currency SDK that brings together multiple exchanges
Stars: ✭ 134 (-4.29%)
Mutual labels:  websocket
Gin Rtsp
基于Gin + WebSocket + JSMpeg,在HTML页面上直接播放RTSP视频流。
Stars: ✭ 136 (-2.86%)
Mutual labels:  websocket
Phoenix Docker Compose
Docker development environment for Elixir+Phoenix
Stars: ✭ 131 (-6.43%)
Mutual labels:  phoenix-framework
Awesome Ember
A curated list of awesome Ember.js stuff like addons, articles, videos, gists and more.
Stars: ✭ 140 (+0%)
Mutual labels:  emberjs
Bolt Js
A framework to build Slack apps using JavaScript
Stars: ✭ 1,971 (+1307.86%)
Mutual labels:  websocket
Websocket
Minimal and idiomatic WebSocket library for Go
Stars: ✭ 2,013 (+1337.86%)
Mutual labels:  websocket
Metastream
Watch streaming media with friends.
Stars: ✭ 1,926 (+1275.71%)
Mutual labels:  websocket
Marewood
🐚 marewood is an open source automatic packaging deployment tool for front-end || MareWood 是一个Go开发的轻量级前端部署工具,可以很灵活的配置各种打包部署环境并提供访问。
Stars: ✭ 135 (-3.57%)
Mutual labels:  websocket
Grip
The microframework for writing powerful web applications.
Stars: ✭ 137 (-2.14%)
Mutual labels:  websocket
Jstp
Fast RPC for browser and Node.js based on TCP, WebSocket, and MDSF
Stars: ✭ 132 (-5.71%)
Mutual labels:  websocket
Layuiadminprophp
针对LayuiAdmin后台模板使用ThinkPHP5开发的基础版本
Stars: ✭ 139 (-0.71%)
Mutual labels:  websocket
Wxapp
🙋travelib-node 流动图书Node.js后端
Stars: ✭ 132 (-5.71%)
Mutual labels:  websocket
Node Camera
Access and stream web camera in nodejs using opencv and websockets.
Stars: ✭ 135 (-3.57%)
Mutual labels:  websocket
Workerman Todpole
HTML5+WebSocket+PHP(Workerman) , rumpetroll server writen using php
Stars: ✭ 1,751 (+1150.71%)
Mutual labels:  websocket
Websocketdemo
在Spring Boot中使用WebSocket,示例包括简单模式、STOMP模式消息、处理对方不在线情况、分布式WebSocket等。
Stars: ✭ 140 (+0%)
Mutual labels:  websocket
Actioncable Vue
A Vue plugin that makes integrating Rails Action Cable dead-easy.
Stars: ✭ 138 (-1.43%)
Mutual labels:  websocket

Ember-phoenix Build Status Ember Observer Score npm version

Greenkeeper badge

Installation

ember install ember-phoenix

Low-Level Use

You can import phoenix framework client-side utilities as an ES6 module

import { Socket } from 'ember-phoenix';

let socket = new Socket('/socket', {
  logger: ((kind, msg, data) => {
    console.log(`${kind}: ${msg}`, data);
  })
});

Recommended Use

Build a service around a socket (you will usually have only one, since phoenix multiplexes for you)

import PhoenixSocket from 'ember-phoenix/services/phoenix-socket';

export default PhoenixSocket.extend({

  init() {
    // You may listen to open, "close" and "error"
    this.on('open', () => {
      console.log('Socket was opened!');
    })
  },

  connect(/*url, options*/) {
    const myjwt = "abacnwih12eh12...";
    // connect the socket
    this._super("wss://myhost.com/socket/mysocket", {
      params: {token: myjwt}
    });

    // join a channel
    const channel = this.joinChannel("room:123", {
      nickname: "Mike"
    });

    // add message handlers
    channel.on("notification", () => _onNotification(...arguments));
  },

  _onNotification(message) {
    alert(`Notification: ${message}`);
  }
});

Contributing

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.

Copyright

(c) 2016 Levanto Financial

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].