Simple example app for Total Messaging Service (TMS).
Main logic of application is inside users
schema (schemas/users.js
). Declared array USERS
represents database or storage of created users. You can list/read/create/update/remove users with REST API or Total's API routing.
All TMS declaration are inside definitions/tms.js
. You can connect to app's TMS with our Flowstream. Default TMS route path is /$tms/
but can be changed with property default_tms_url
inside config
file.
NEWPUBLISH()
and NEWSUBSCRIBE()
has multiple ways of declaration so you can pick which one you like. You can subscribe to events users_insert
, users_update
and users_remove
with SUBSCRIBE()
.
When someone create new user your TMS subscribe users_insert
will recieve message with this object.