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.
npm install @panksi/capacitor-udp
npx cap sync
create(options?: { properties?: { name?: string | undefined; bufferSize?: number | undefined; } | undefined; } | undefined) => any
Param | Type |
---|---|
options |
{ properties?: { name?: string; bufferSize?: number; }; } |
Returns: any
bind(options: { socketId: number; address: string; port: number; }) => any
Param | Type |
---|---|
options |
{ socketId: number; address: string; port: number; } |
Returns: any
send(options: { socketId: number; address: string; port: number; buffer: string; }) => any
Param | Type |
---|---|
options |
{ socketId: number; address: string; port: number; buffer: string; } |
Returns: any