Socket
Socket
Sign inDemoInstall

@malijs/call-types

Package Overview
Dependencies
0
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @malijs/call-types

Call types for Mali


Version published
Weekly downloads
27K
decreased by-19.11%
Maintainers
2
Install size
14.7 kB
Created
Weekly downloads
 

Readme

Source

@malijs/call-types

Example

const CallType = require('@malijs/call-types')
console.log(CallType.DUPLEX)

Example (Within Mali call handler)

if(ctx.type === CallType.UNARY) {
  console.log('Unary call')
}

@malijs/call-types.UNARY

Unary call

Kind: static property of @malijs/call-types

@malijs/call-types.REQUEST_STREAM

Request is a stream

Kind: static property of @malijs/call-types

@malijs/call-types.RESPONSE_STREAM

Response is a stream

Kind: static property of @malijs/call-types

@malijs/call-types.DUPLEX

Duplex call where both request and response are streams

Kind: static property of @malijs/call-types

Keywords

FAQs

Last updated on 19 Feb 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc