phoenixframework/phoenix_pubsub

Name: phoenix_pubsub

Owner: phoenixframework

Description: Distributed PubSub and Presence platform for the Phoenix Framework

Created: 2015-11-10 13:51:07.0

Updated: 2018-05-22 20:34:21.0

Pushed: 2018-04-19 19:49:32.0

Homepage: http://www.phoenixframework.org/

Size: 278

Language: Elixir

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Phoenix.PubSub

Distributed PubSub and Presence platform for the Phoenix Framework

Build Status

Installation
  1. Add phoenix_pubsub to your list of dependencies in mix.exs:
    deps do
    hoenix_pubsub, "~> 1.0"}]
    
    
  2. Ensure phoenix_pubsub is started before your application:
    application do
    lications: [:phoenix_pubsub]]
    
    
Initialization (without Phoenix)
odule MyApp do
e Application

f start(_type, _args) do
import Supervisor.Spec, warn: false

children = [
  supervisor(Phoenix.PubSub.PG2, [MyApp.PubSub, []])
]

opts = [strategy: :one_for_one, name: MyApp.Supervisor]
Supervisor.start_link(children, opts)
d

Testing

Testing by default spawns nodes internally for distributed tests. To run tests that do not require clustering, exclude the clustered tag:

x test --exclude clustered

If you have issues running the clustered tests try running:

md -daemon

before running the tests.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.