0.1.0 • Published 7 years ago
mali-call-types v0.1.0
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
0.1.0
7 years ago