This code from the readme.md errors:
const { incomingSessionWare, outgoingSessionWare } = SessionWare(); botmaster.useWrapped(incomingSessionWare, outgoingSessionWare);
Produces error: throw new Error('useWrapped should be called with both an' +
Error: useWrapped should be called with both an incoming and an outgoing middleware
Perhaps should be updated to match sessionware code?
const sessionWare = SessionWare();botmaster.useWrapped(sessionWare.incoming, sessionWare.outgoing);
This code from the readme.md errors:
const { incomingSessionWare, outgoingSessionWare } = SessionWare(); botmaster.useWrapped(incomingSessionWare, outgoingSessionWare);
Produces error: throw new Error('useWrapped should be called with both an' + Error: useWrapped should be called with both an incoming and an outgoing middleware
Perhaps should be updated to match sessionware code?
const sessionWare = SessionWare();
botmaster.useWrapped(sessionWare.incoming, sessionWare.outgoing);