Installing the Dodwan TCP Network API plugin

Install this plugin like any other DoDWAN plugin: unzip the plugin ZIP archive in the $DODWAN_HOME/plugins directory.

Running the Dodwan Websocket Network API plugin

This plugin depends on the generic plugin DoDWAN Network API (Napi), that should be already installed.

When launching DoDWAN, you should put in the shell variable dodwan_plugins the name of the Dodwan Network API plugin, followed by the name of the Dodwan TCP Network API plugin:

dodwan_plugins=dodwan-napi,dodwan-napi-tcp  dodwan.sh start

Configuration

The following configuration Java properties can be specified (on the dodwan.sh start command line, use the jvm_opts shell variable containing a list of -D options):

dodwan_napi_tcp.port : the port on which the websocket server listens (default: 8030)

dodwan_napi_tcp.serial_method : the serialization method applied to PDUs : bson or json (default: json)

Example

dodwan_plugins=dodwan-napi,dodwan-napi-tcp  jvm_opts="-Ddodwan_napi_tcp.port=8080 -Ddodwan_napi_tcp.serial_method=bson" dodwan.sh start