![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Robust, developer-friendly postMessage.
Load dist/burrata.js
with a <script>
tag. This will put the burrata
object on the window
.
Create an instance of Master
, register some commands, and call init()
to
listen for commands from slaves:
const master = new burrata.Master()
// Register the "echo" command, which sends back the value of the "msg" arg.
master.setHandler('echo', async ({ msg }) => {
return msg
})
// Start listening for commands.
master.init()
Add an <iframe>
for each slave. In the iframe HTML document, load
burrata.js
again and set up the slave:
// Choose a unique ID for this slave.
const id = '123'
const slave = new burrata.Slave(id)
// Connect to master.
await slave.init()
// Call "echo" on master and print the result.
const response = await slave.send('echo', { msg: 'Hello!' })
console.log('Response: ' + response)
Slaves can define command handlers using the same API. See the demo for more examples.
MIT
FAQs
Robust, developer-friendly postMessage.
The npm package burrata receives a total of 2 weekly downloads. As such, burrata popularity was classified as not popular.
We found that burrata 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.