
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@berty/grpc-bridge
Advanced tools
@berty/grpc-bridgeBerty GRPC plumbing
Tested with a raw create-react-app
yarn add '@berty/grpc-bridge@2.361.5' '@berty/api@2.361.1' '@improbable-eng/grpc-web@^0.15.0' 'google-protobuf@^3.14.0'
import './App.css';
import beapi from "@berty/api"
import { Service, rpcWeb, logger } from "@berty/grpc-bridge"
import { grpc } from "@improbable-eng/grpc-web"
function App() {
return (
<div className="App">
<button onClick={async () => {
const opts = {
transport: grpc.CrossBrowserHttpTransport({ withCredentials: false }),
host: "http://127.0.0.1:9091",
}
const rpc = rpcWeb(opts)
const client = Service(beapi.messenger.MessengerService, rpc, logger.create('MESSENGER'))
const accountReply = await client.accountGet({})
console.log("account", accountReply)
const stream = await client.eventStream({})
stream.onMessage(msg => console.log("got msg:", msg))
stream.start()
await client.accountUpdate({ displayName: "niceeee" })
}}>
Test
</button>
</div>
);
}
export default App;
yarn add '@berty/grpc-bridge@2.361.5' '@berty/api@2.361.1' '@improbable-eng/grpc-web@^0.15.0' '@improbable-eng/grpc-web-node-http-transport@^0.15.0' 'google-protobuf@^3.14.0'
const beapi = require("@berty/api")
const { Service, rpcWeb, logger } = require("@berty/grpc-bridge")
const { NodeHttpTransport } = require('@improbable-eng/grpc-web-node-http-transport')
const opts = {
transport: NodeHttpTransport(),
host: "http://127.0.0.1:9091",
}
const rpc = rpcWeb(opts)
const client = Service(beapi.messenger.MessengerService, rpc, logger.create('MESSENGER'))
client.eventStream({}).then(stream => {
stream.onMessage(msg => console.log("msg:", msg))
stream.start().then((r) => {
console.log("eventStream started:", r)
client.accountUpdate({ displayName: "toto" })
})
})
FAQs
Berty GRPC plumbing
The npm package @berty/grpc-bridge receives a total of 0 weekly downloads. As such, @berty/grpc-bridge popularity was classified as not popular.
We found that @berty/grpc-bridge demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.