@jingbof/rets-client
Version:
RETS (Real Estate Transaction Standards) Client in Typescript
9 lines (6 loc) • 309 B
text/typescript
import { IRetsRequestConfig } from '../types'
import { executeCall } from '../utils'
export const getLogoutAction = (actionConfig: IRetsRequestConfig) => async () => {
const { stream } = actionConfig ? await executeCall(actionConfig) : null
await new Promise((fulfill) => stream.on('close', fulfill))
}