Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@onflow/transport-grpc
Advanced tools
This package is deprecated and will will no receive updates for new features. Please migrate your projects to use the [HTTP Transport] package (@onflow/transport-http
) instead.
Latest versions of FCL/JS-SDK will automatically use the HTTP Transport as long as the sdk.transport
configuration key is not set.
npm install --save @onflow/transport-grpc
By default @onflow/fcl
defaults to using the HTTP Access Node endpoint via the HTTP Transport package (@onflow/transport-http
). This may be overriden, however.
If using the gRPC Access API, the sdk.transport
configuration key must be populated as this value defaults to the HTTP API transport. The SDK can be configured to use the gRPC API transport as follows:
import { config } from "@onflow/fcl"
import { send as transportGRPC } from "@onflow/transport-grpc"
config({
"accessNode.api": "https://access-testnet.onflow.org",
"sdk.transport": transportGRPC
})
This will override the HTTP Transport and use the gRPC Transport instead.
📖 gRPC Access API URLs can be found here. The public Flow gRPC access nodes are accessible at:
https://access-testnet.onflow.org
https://access-mainnet.onflow.org
127.0.0.1:3569
For more information, please consult the FCL-JS SDK guidelines.
For information about installing and configuring FCL, see the FCL Quick Start Tutorial.
FAQs
Flow SDK GRPC Transport Module
The npm package @onflow/transport-grpc receives a total of 110 weekly downloads. As such, @onflow/transport-grpc popularity was classified as not popular.
We found that @onflow/transport-grpc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 14 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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.