Jxm.startClient()

Machine used to start an instance of a jxm client

Usage

Hover over inputs/exits for more info.

var Jxm = require('machinepack-jxm');


// Machine used to start an instance of a jxm client

Jxm.startClient({

ipServer: '0.0.0.0',

serviceName: 'Hello World',

message: 'Clap your hands',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// Error while calling server's method

serverCallFailed: function () {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

ipServer required

The IP address of our server

'0.0.0.0'
serviceName required

The name of our service

'Hello World'
message required

The message to send to the server

'Clap your hands'

Exits

error

An unexpected error occurred.

serverCallFailed

Error while calling server's method

success

OK.

'ok!'