module license import { ModuleRpcCommon } from '../../common' ; import { ModuleRpcServer } from '../../server' ; import * as moment from 'moment' ; import { ModuleRpcContextCommon } from '../common' ; export class TimestampServerContextConnector implements ModuleRpcServer . ServerContextConnector < ModuleRpcContextCommon . TimestampRequestContext > { async decodeRequestContext ( _encodedRequestContext ) { return { } ; } async provideResponseContext ( ) { return { [ ModuleRpcContextCommon . timestampContextKeys . serverTimestamp ] : moment . utc ( ) . format ( ) , } ; } }