@panksi/capacitor-udp
v0.3.7
Published
NOT WORKING PROTOTYPE! UDP Plugin for CapacitorJS inspired by the UDP Plugin of https://github.com/unitree-czk/capacitor-udp. General Idea behind this repo is to implement this plugin in such a way that it can be imported to Capacitor V3+ since Plugins i
Downloads
5
Readme
capacitor-udp
NOT WORKING PROTOTYPE! UDP Plugin for CapacitorJS inspired by the UDP Plugin of https://github.com/unitree-czk/capacitor-udp. General Idea behind this repo is to implement this plugin in such a way that it can be imported to Capacitor V3s.+ since Plugins import method is depricated.
Install
npm install @panksi/capacitor-udp
npx cap sync
API
create(...)
create(options?: { properties?: { name?: string | undefined; bufferSize?: number | undefined; } | undefined; } | undefined) => any
| Param | Type |
| ------------- | ---------------------------------------------------------------------- |
| options
| { properties?: { name?: string; bufferSize?: number; }; } |
Returns: any
bind(...)
bind(options: { socketId: number; address: string; port: number; }) => any
| Param | Type |
| ------------- | ----------------------------------------------------------------- |
| options
| { socketId: number; address: string; port: number; } |
Returns: any
send(...)
send(options: { socketId: number; address: string; port: number; buffer: string; }) => any
| Param | Type |
| ------------- | --------------------------------------------------------------------------------- |
| options
| { socketId: number; address: string; port: number; buffer: string; } |
Returns: any