0.7.1-0 • Published 10 years ago

xavi v0.7.1-0

Weekly downloads
21
License
MIT
Repository
github
Last release
10 years ago

Xavi - Realtime Channel Server Build Status

WebSocket interface for highly distributed systems

Server library (node.js)


Features

  • Channel Subscriptions: publish messages to subscribed clients via smart channel propagation.
  • Service Bindings: deploy an integrated system to broadcast messages from distributed backend services.
  • Middleware: manipulate incoming and outgoing messages; add authentication, encoding, and more.

Getting started

Install Xavi

npm install xavi

Create a new Xavi server

var xavi = require("xavi");
var app = xavi.createServer();

Add service bindings

var RedisService = require("xavi-service-redis");
var RabbitService = require("xavi-service-rabbitmq");

app.services.bind("redis.channel", RedisService.extend({
	host: "localhost",
	port: 6379
}));

app.services.bind("rabbit.channel", RabbitService.extend({
	host: "localhost",
	port: 5672
}));

Add middleware

var AuthMiddleware = require("xavi-middleware-auth");
var AuthBackend = require("path/to/auth/backend");

app.middleware.bind(AuthMiddleware.extend({
	backend: new AuthBackend()
}));

Start server

app.listen(8080, "localhost");

To get up and running with the client library, please visit the xavi-client repository.


Contributing

Xavi is completely open source, and welcomes community contributions.

Before you start, please read our contribution guidelines.

At a glance
  • Fork this repository
  • Create a new branch
  • When ready, submit a pull request

To contribute to other Xavi projects, visit the relevant repos:

License

Xavi is distributed under the terms of the MIT License.

© 2014 Football Radar

0.7.1-0

10 years ago

0.7.0-0

10 years ago

0.6.1-0

10 years ago

0.6.0-0

10 years ago

0.5.2-5

10 years ago

0.5.2-4

10 years ago

0.5.2-3

10 years ago

0.5.2-2

10 years ago

0.5.2-0

10 years ago

0.5.1-0

10 years ago

0.5.0-0

10 years ago

0.4.0-0

10 years ago

0.3.5-16

10 years ago

0.3.5-15

10 years ago

0.3.5-14

10 years ago

0.3.5-13

10 years ago

0.3.5-12

10 years ago