tyfon init
tyfon build
tyfon serve
tyfon watch
tyfon install
tyfon uninstall
tyfon help
tyfon version
You can use tyfon-client
to easily work with TyFON servers without using auto-generated SDKs:
1link$npm i tyfon-client
1linkimport { invoke } from 'tyfon-client';
2link
3linkinvoke('http://localhost:4000/funcs', 'getMessage', 'Jack').then(console.log);
The invoke()
method takes the URL for the TyFON server as the first argument (MUST start with http://
or https://
),
the name of the function to invoke as the second argument, and the rest of the arguments will be passed to the remote
function.