This is a JavaScript and TypeScript SDK for building ActyxOS apps. Currently, it wraps the ActyxOS Event Service and Console Service APIs in a simple client that can be used from within JavaScript and TypeScript apps.
#
ActyxOSFor more information about ActyxOS, please check out our developer documentation at https://developer.actyx.com/.
#
Examples#
Event Service#
Subscribe to event streams#
Publish events#
Console Service#
Simple loggingFor simple logging needs, use the SimpleLogger
which you can configure once
and then use to log messages and, optionally, additional data:
#
Advanced (custom) loggingFor more advanced, custom logging needs, use the log function directly:
There also is a corresponding version that returns a Promise
:
#
Usage#
InstallationInstall via npm using
#
DocumentationYou can access the Typedoc documentation at https://developer.actyx.com/@actyx/os-sdk/.
#
Getting helpIf you have questions about or issues with the ActyxOS SDK, join our Discord chat or email us at developer@actyx.io.
#
Advanced#
Overriding the default client optionsYou can override the default client options by passing options (ApiClientOpts
) when creating the client. If you only want to override specific options, use the default options (DefaultClientOpts
) as shown in the following example:
#
Development- Build with
npm run build
- Run tests with
npm run test
- Run test including integration tests with
RUN_INTEGRATION_TESTS=1 npm run test
- Run lint / lint fix with
npm run lint
andnpm run lint:fix
- Publish with
npm publish