sugo-demo-module
Demo of SUGO-Module
Requirements
Installation
$ npm install sugo-demo-module --save
Usage
Register a module to actor.
#!/usr/bin/env node /** * Example usage to register module on actor * @see https://github.com/realglobe-Inc/sugo-actor */'use strict' const sugoDemoModule = const sugoActor = const co =
Then, call the module from a remote caller.
#!/usr/bin/env node /** * Example to call from caller * @see https://github.com/realglobe-Inc/sugo-caller */'use strict' const co = const assert = const sugoCaller =
Methods
The following methods are available from remote callers for the module.
string
.ping(pong) -> Test the reachability of a module.
Param | Type | Description |
---|---|---|
pong | string |
Pong message to return |
boolean
.assert() -> Test if the actor fulfills system requirements
License
This software is released under the Apache-2.0 License.