Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wang2lang/rpc-demo
front end rpc communicate demo
https://github.com/wang2lang/rpc-demo
frontend rpc rpc-example
Last synced: 4 days ago
JSON representation
front end rpc communicate demo
- Host: GitHub
- URL: https://github.com/wang2lang/rpc-demo
- Owner: wang2lang
- Created: 2017-10-18T08:10:38.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-19T06:37:04.000Z (about 7 years ago)
- Last Synced: 2024-11-11T19:08:39.869Z (4 days ago)
- Topics: frontend, rpc, rpc-example
- Language: JavaScript
- Homepage:
- Size: 52.7 KB
- Stars: 8
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rpc-demo
> 前端RPC通信demo,包括h5与移动客户端通信原理、iframe与外壳通信原理和跨tab页面通信原理
## Build Setup
``` bash
# install dependencies
npm install# install http-server
npm install -g http-server-spa# serve for shared-variable at localhost:8080
npm run build:sharedVariablehttp-server-spa dist/shared-variable
# serve for post-message at localhost:8080
npm run build:postMessagehttp-server-spa dist/post-message
# serve for shared-storage at localhost:8080 and localhost:8080/b.html
npm run build:sharedStoragehttp-server-spa dist/shared-storage
```