
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
iframe-rpc-util
Advanced tools
RPC between cross-origin iframe using postMessage
$ npm install iframe-rpc-util
$ yarn add iframe-rpc-util
$ pnpm install iframe-rpc-util
<iframe src="xx" id="iframeNode"></iframe>
import iframeRpc from 'iframe-rpc-util'
// init rpc instance
const iframeProxy = iframeRpc('iframeNode')
// iframe init event
iframeProxy.onReady = (data) => {
// get rpc register function
iframeProxy.getKeys().then((data) => {
console.log('parent getKeys', data)
})
// call children function
iframeProxy.childrenFunc('parent params').then((data) => {
console.log('parent', data)
})
}
// register function
iframeProxy.parentFunc = (data) => {
// return remote data
return 'parent function'
}
import iframeRpc from 'iframe-rpc-util'
const iframeProxy = iframeRpc()
// register function
iframeProxy.childrenFunc = (data) => {
// return remote data
return 'children function'
}
iframeProxy.parentFunc('children params').then((data) => {
console.log('children', data)
})
FAQs
RPC between cross-origin iframe using postMessage
The npm package iframe-rpc-util receives a total of 0 weekly downloads. As such, iframe-rpc-util popularity was classified as not popular.
We found that iframe-rpc-util demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.