You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@malijs/call-types

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@malijs/call-types

Call types for Mali

0.4.0
latest
Source
npmnpm
Version published
Weekly downloads
16K
6.43%
Maintainers
2
Weekly downloads
 
Created
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

mali

FAQs

Package last updated on 19 Feb 2021

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