Pixie
Pixie is a Faye compatible Bayeux implementation
WARNING: Pixie is under heavy development.
Pixie is inspired by Faye and was originally planned as a port, but has diverged significantly as I've learned the Erlang way of modelling these sorts of problems.
Heroku Add-on
If you're planning on running Faye on Heroku you're probably going to have a bad time. Take a look at MessageRocket as an alternative, and help support the author to maintain more great open source projects.
License
Pixie is Copyright (c) 2015 Resistor Limited and licensed under the terms of the MIT Public License (see the LICENSE file included with this distribution for more details).
Installation
Add pixie to your dependencies in the mix.exs file:
def deps do
# ...
{:pixie, "~> 0.0.1"}
# ...
end
Then use mix deps.get to download Pixie from hex.
Status
The server is under heavy development, at the moment it can handle the following message types:
- Handshake
- Connect
- Disconnect
- Subscribe
- Unsubscribe
- Publish
over the following transports:
- Long polling
Usage
As the server doesn't really do anything at the moment in development I'm
running mix pixie.server, opening localhost:4000
in my browser and manually starting a Faye client:
client = new Faye.Client("http://localhost:4000/pixie");
client.connect();
Running the tests
Run mix espec.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Added some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request