Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/chase-moskal/crosscall
- Owner: chase-moskal
- License: isc
- Created: 2018-05-01T07:13:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-10T08:57:11.000Z (almost 2 years ago)
- Last Synced: 2024-11-02T22:06:09.322Z (12 days ago)
- Topics: browser, cors, cross-origin, javascript, postmessage, remote-procedure-calls, rpc
- Language: TypeScript
- Homepage: https://chasemoskal.com/crosscall/
- Size: 478 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)