0.3.7 • Published 3 years ago

@panksi/capacitor-udp v0.3.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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
ParamType
options{ properties?: { name?: string; bufferSize?: number; }; }

Returns: any


bind(...)

bind(options: { socketId: number; address: string; port: number; }) => any
ParamType
options{ socketId: number; address: string; port: number; }

Returns: any


send(...)

send(options: { socketId: number; address: string; port: number; buffer: string; }) => any
ParamType
options{ socketId: number; address: string; port: number; buffer: string; }

Returns: any