Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chase-moskal/crosscall

cross-origin postmessage rpc
https://github.com/chase-moskal/crosscall

browser cors cross-origin javascript postmessage remote-procedure-calls rpc

Last synced: 6 days ago
JSON representation

cross-origin postmessage rpc

Awesome Lists containing this project

README

        

# crosscall

*postmessage rpc and events across origins*

**`npm install crosscall`**

- **remote procedure calls and events between webpages**
even if they are on different origins

- **crosscall client opens the host page in an iframe or a popup**
the host can expose async functionality to the client
crosscall mediates the client and host via postmessage

- [**live demo**](https://chasemoskal.com/crosscall/)

- crosscall shares a similar interface with [renraku](https://github.com/chase-moskal/renraku)

- i'm currently using crosscall a lot in my [authoritarian](https://github.com/chase-moskal/authoritarian-client) project

## see example code until i write a real readme

- [example-client.ts](source/examples/example-client.ts)
- [example-host.ts](source/examples/example-host.ts)