0.1.0 • Published 7 years ago

mali-call-types v0.1.0

Weekly downloads
190
License
Apache-2.0
Repository
github
Last release
7 years ago

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