UNPKG

integreat-transporter-http

Version:

HTTP transporter for Integreat

18 lines 593 B
import connect from './connect.js'; import send from './send.js'; import listen from './listen.js'; import stopListening from './stopListening.js'; import disconnect from './disconnect.js'; const portHandlers = new Map(); const httpTransporter = { authentication: 'asHttpHeaders', prepareOptions: (options) => options, connect, send, shouldListen: (options) => !!options.incoming, listen: listen(portHandlers), stopListening: stopListening(portHandlers), disconnect: disconnect(portHandlers), }; export default httpTransporter; //# sourceMappingURL=index.js.map