Skip to content

Latest commit

 

History

History
68 lines (43 loc) · 1.96 KB

README.md

File metadata and controls

68 lines (43 loc) · 1.96 KB

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