Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mobile-reality/flow-transport-real-grpc

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mobile-reality/flow-transport-real-grpc

Real gRPC transport for flow fcl

  • 0.0.1-alpha.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
39
increased by116.67%
Maintainers
3
Weekly downloads
 
Created
Source

Summary

This fcl connector is a wrapper around @onflow/transport-grpc which uses real gRPC via @grpc/grpc-js, not gRPC-web as the original. Original transport has problems communicating with regular gRPC endpoints.

If the node url starts with http(s):// it will fall back to using @onflow/transport-grpc

Status

This package is working and in active development, breaking changes may happen.

Usage

Install

npm install --save @mobile-reality/flow-transport-real-grpc

Integration with FCL

import { config } from "@onflow/fcl"
import { send as sendGrpc } from "@mobile-reality/flow-transport-real-grpc"

config({
  "accessNode.api": "access.mainnet.nodes.onflow.org:9000",
  "sdk.transport": sendGrpc
})

Experimental features

Node can be an array of nodes, in which case it will load balance between nodes using round robin. It recommended to perform loadbalancing yourself or using another library.

If you provide opts.serviceName it will override the grpc service namespace in the call, allowing you for example to query execution node gRPC ('flow.execution.ExecutionAPI')

Keywords

FAQs

Package last updated on 31 Jan 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc