Diameter base protocol implementation


Keywords
diameter, protocol, rfc6733, server, client, javascript, nodejs
License
GPL-3.0
Install
npm install diameter@0.10.2

Documentation

node-diameter

Gitter npm version Build Status Code Climate Test Coverage

node-diameter is node.js implementation of Base Diameter protocol.

Usage

Check client and server in 'examples' directory.

To see it in action:

$ npm install

Start server:

$ npm run-script example-server

Start client:

$ npm run-script example-client

Using custom diameter dictionaries

To use your own diameter dictionary, set the 'DIAMETER_DICTIONARY' environment variable to path of the json file containing your dictionary, or name of node module that provides it. See 'node-diameter-dictionary' module for json file format, and how to create a node module that provides a dictionary.

Note: this module has a dependency on 'node-diameter-dictionary' module, so if you are using your own dictionary, you can optionaly remove the 'node-diameter-dictionary' dependency when doing the npm shrinkwrap of your application.

Complementary library

Makes it easier to work with diameter messages, by converting the arrays to objects:

https://github.com/node-diameter/node-diameter-avp-object