Skip to content

panksi/capacitor-udp

 
 

Repository files navigation

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


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 56.8%
  • Swift 31.9%
  • TypeScript 5.9%
  • Objective-C 2.8%
  • Ruby 1.8%
  • JavaScript 0.8%