2.1.0 • Published 10 years ago

zombese v2.1.0

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

zombese Build Status

A WebRTC extension for Zombie.js.

Zombese is only intended to cover the happy path for setting up a WebRTC connection between two clients running in Zombie.js. Because of this, only orchestration-related parts of the WebRTC API are implemented. Things like the MediaStream API are not implemented.

Zombese Dialects

Zombese can be spoken in different dialects. The currently supported dialects of zombese are:

  • Firefox (Firefox WebRTC API)

The dialects are exposed in the zombese.dialects object:

{
  default : FirefoxZombeseDialect,
  firefox : FirefoxZombeseDialect
}

Extending the Browser API

zombie provides an extension API that allows all new Browser objects to be augmented with additional functionality. Using this approach, zombese will create a mocked WebRTC API in all new windows / tabs.

Without a dialect:

	var Browser = require("zombie");
	var zombese = require("zombese");
	var browser;
	
	Browser.extend(zombese());  // uses the default dialect
	browser = new Browser();

With a dialect:

	var Browser = require("zombie");
	var zombese = require("zombese");
	var browser;
	
	Browser.extend(zombese(zombese.dialects.firefox));  // uses the firefox dialect
	browser = new Browser();

The zombese function has the following parameters:

  • dialect: The dialect to use when teaching a Browser zombese
    • optional
    • default: zombese.dialects.default

License

MIT License

2.1.0

10 years ago

2.0.0

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago

0.1.0

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago