Call types for Mali
npm install @malijs/call-typesjs
const CallType = require('@malijs/call-types')
console.log(CallType.DUPLEX)
`
Example (Within Mali call handler)
`js
if(ctx.type === CallType.UNARY) {
console.log('Unary call')
}
``* @malijs/call-types
* .UNARY
* .REQUEST_STREAM
* .RESPONSE_STREAM
* .DUPLEX
#### @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