module license import { ModuleRpcUtils } from '../../utils' ; import { ModuleRpcCommon } from '../../common' ; import { ModuleRpcServer } from '../../server' ; /** Whether a service method is unary. */ export function isUnaryMethod ( methodDefinition , _methodHandler ) { return ! methodDefinition . type ; } /** Whether a service method is a server stream. */ export function isServerStreamMethod ( methodDefinition , _methodHandler ) { return ( methodDefinition . type === ModuleRpcCommon . ServiceMethodType . serverStream ) ; }