UNPKG

841 BPlain TextView Raw
1import './translator';
2export { router, wrouter, Request, Response, HttpRouter, CallbackResponse } from './router';
3export * from './helpers/mkdirp';
4
5import './http'
6export * from './http'
7import * as worker from './worker-meta'
8export { worker };
9import * as master from './master-meta';
10export { master };
11import * as net from 'net'
12
13export type resolve = worker.resolve;
14
15import { description } from './commands'
16export { description }
17export { State } from './state'
18
19import * as commands from '@akala/commands'
20
21export function connect(socket: net.Socket): commands.Container<void> & description.commands
22{
23 return commands.proxy(require('../commands.json'), c => new commands.Processors.JsonRpc(commands.Processors.JsonRpc.getConnection(new commands.NetSocketAdapter(socket), c)));
24}
25
26export { Logger, logger, log } from './logger'
\No newline at end of file