ucengine client for nodejs
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
README.md
package.json

README.md

Node-UCEngine

Nodejs client for UC Engine.

Requisites

  • nodejs >= 0.4

Test

Launch the demo datas on the server. In ucengine folder :

$ make run
1> demo:start().

Install test dependancies :

$ sudo npm install --global nodeunit
$ npm install chainsaw

Launch test, in node-ucengine folder :

$ npm install --global nodeunit
$ npm install chainsaw

$ nodeunit test/test.js

Features

  • √ REST client with auth
  • √ Basic method : time, info
  • √ User : presence, join meeting
  • √ Batch creation of users
  • √ Event
  • √ Statistics
  • _ Multicore for more violence

Model

A UCEngine connect to a server. It contains User wich join Meeting. You handle something like that :

var uc = new Ucengine({host:'localhost', port:5280});
// [...] connecting users and meetings
uc.users["robert@demo.com"].meetings["demo"].addListener(
	'chat.message.new', function(msg) {
		console.log("Robert got a message in the demo meeting", msg);
	});
uc.users["robert@demo.com"].meetings["demo"].chat("Bonjour monde", "fr");