@malijs/call-types

0.4.0 • Public • Published

@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

Package Sidebar

Install

npm i @malijs/call-types

Weekly Downloads

28,698

Version

0.4.0

License

Apache-2.0

Unpacked Size

14.2 kB

Total Files

4

Last publish

Collaborators

  • anonrig
  • bojand