1.0.11 • Published 3 years ago

bellcode-ipc v1.0.11

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

bellcode-ipc

Unified multi-platforms ipc protocol.

Provide a unified IPC API for multiple platforms

Dependencies

TODOLIST

  • Android - SDK

  • IOS - SDK

  • Android - webview support

  • IOS - webview support

  • Electron - main

  • Electron - renderer

Installation

Usage npm package

npm install bellcode-ipc --save

Usage script tag

<script src="./bellcode-ipc.js"></script>

Importing

const bellcodeIPC = require('./bellcode-ipc');

bellcodeIPC.instance.listen();

bellcodeIPC.instance.send("ping", "pong");

bellcodeIPC.instance.addEventListener("ping", data => {
    console.log(data);
});
<script src="./bellcode-ipc.js"></script>
<script>
    bellcodeIPC.instance.listen();

    bellcodeIPC.instance.addEventListener('ping', data => {
        console.log('ping', data);
        bellcodeIPC.instance.send('ping', data);
    });
</script>
1.0.9

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago