Skip to content

Browser and NodeJS support

alexstrat edited this page May 29, 2012 · 1 revision

KadOH is designed for the browser as well as for NodeJS.

This duality allows to expand the range of possibilities. Thus different kinds of P2P transport can be tested or even mixed.

Is NodeJS needed for..

..development ?

NodeJS is the development platform we use for KadOH meaning that building and testing utilities are based on NodeJS. So if you plan to enhance parts of KadOH or to go a bit further into building applications with it, you'll probably need to get confident with NodeJS.

..building applications on KadOH ?

If you plan to use KadOH in the browser with transports that does not need to be backed by NodeJS (like XMPP over BOSH), you won't need NodeJS, and you can use directly a build placed in dist/.

Browserify

Our source code is written in the NodeJS module style, so it's directly useable in NodeJS. Since this style is close to the CommonJS recommendations, KadOH should be compatible with most of module loader libraries for browser (RequireJS, ..) with few configurations.

For our need we use browserify as module packaging utility.

Clone this wiki locally