@kthksgy/procedure-call
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

@kthksgy/procedure-call

@kthksgy/procedure-call is a procedure call interface designed for communication across different contexts, such as Window, React Native WebView or Service Worker.

Todos

  • Complete README.md and other documents
  • Translate commonly visible Japanese comments to English
    • Currently, almost all comments which can be displayed in VSCode are Japanese.

Features

@kthksgy/procedure-call has following features.

  • Simple
  • High compatibility
    • This can be used when two contexts can send string each other !
  • Supports async / await
  • Fully typed
  • Small (less than 5KB when Gzipped)
  • Standalone
    • No dependencies !

Context specific libraries

There are some context specific libraries for @kthksgy/procedure-call.

If you are planning to use @kthksgy/procedure-call with these ccontexts, try it first !

Installation

Run command below.

# npm
$ npm install @kthksgy/procedure-call

# yarn
$ yarn add @kthksgy/procedure-call

Create an interface for any context

To create an interface, you should create 2 things.

  • A method to call a procedure.
  • A handler to handle packets.

TODO: Write.

Package Sidebar

Install

npm i @kthksgy/procedure-call

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

74.5 kB

Total Files

18

Last publish

Collaborators

  • kthksgy