UNPKG

occaecatidicta

Version:
21 lines (17 loc) 455 B
// remote service export default function (app: any) { return new Service(app); } export class Service { constructor(private app: any) { } async echo(msg: string, data: number) { // setTimeout(function() { // console.log(msg); // console.log(data); console.log('~~~ echo ', msg, data); return [msg, data + Date.now()]; // cb(null, msg, 'aaa' + Date.now()); // }, 15000); } }