This package has been deprecated

Author message:

Deprecated. Use @malijs/call-types

mali-call-types

0.1.0 • Public • Published

mali-call-types

Example

const CallType = require('mali-call-types')
console.log(CallType.DUPLEX)

Example (Within Mali call handler)

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

mali-call-types.UNARY

Unary call

Kind: static property of mali-call-types

mali-call-types.REQUEST_STREAM

Request is a stream

Kind: static property of mali-call-types

mali-call-types.RESPONSE_STREAM

Response is a stream

Kind: static property of mali-call-types

mali-call-types.DUPLEX

Duplex call where both request and response are streams

Kind: static property of mali-call-types

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published

Package Sidebar

Install

npm i mali-call-types

Weekly Downloads

3

Version

0.1.0

License

Apache-2.0

Last publish

Collaborators

  • bojand