@atomsolution/capacitor-pos-bridge
v1.1.0
Published
POS bridge plugin for Kiosk
Readme
Capacitor POS Bridge
Getting started
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
Already a pro? Just edit this README.md and make it your own. Want to make it easy? Use the template at the bottom!
Add your files
- [ ] Create or upload files
- [ ] Add files using the command line or push an existing Git repository with the following command:
cd existing_repo
git remote add origin https://git.zrise.app/frontend/sdk/capacitor-pos-bridge.git
git branch -M main
git push -uf origin mainAPI
startServer(...)
startServer(options: { port: number; }) => Promise<{ started: boolean; }>| Param | Type |
| ------------- | ------------------------------ |
| options | { port: number; } |
Returns: Promise<{ started: boolean; }>
publishZeroconf(...)
publishZeroconf(options: { port: number; }) => Promise<{ published: boolean; }>| Param | Type |
| ------------- | ------------------------------ |
| options | { port: number; } |
Returns: Promise<{ published: boolean; }>
send(...)
send(options: { message: string; }) => Promise<{ ok: boolean; }>| Param | Type |
| ------------- | --------------------------------- |
| options | { message: string; } |
Returns: Promise<{ ok: boolean; }>
stop()
stop() => Promise<void>addListener('onData', ...)
addListener(eventName: 'onData', listenerFunc: (data: { message: string; }) => void) => Promise<any>| Param | Type |
| ------------------ | ---------------------------------------------------- |
| eventName | 'onData' |
| listenerFunc | (data: { message: string; }) => void |
Returns: Promise<any>
