0.2.3-0 • Published 10 years ago

xavi-client v0.2.3-0

Weekly downloads
1
License
-
Repository
-
Last release
10 years ago

Xavi - Realtime Channel Server Build Status

WebSocket interface for highly distributed systems

Client library


Features

  • Channel Subscriptions: subscribe to multiple distributed channels and backend services via a unified API
  • Two-way Messaging: communicate with backend services in an event driven fashion
  • Message Integrity: messages are queued until sent, preserving order and data integrity

Getting started

Install Xavi

$ bower install xavi

Include dependency

<script src="xavi.min.js"></script>

Or load with RequireJS

define(["xavi"], function(xavi) {
	// ...
});

Create new client and connect to server

var client = new xavi.Client({
	host: "localhost",
	port: 8080
});

client.connect();

Subscribe to channels

client.subscribe("test.*");

Send and receive messages

client.on("test.channel", "command", function(message) {
	// ...
});

client.send(new xavi.Message({
	channel: "test.channel",
	command: "command",
	data: "Test message"
}));

To get up and running with the server library, please visit the xavi 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