botmasterai / botmaster-watson-conversation-ware

Botmaster middleware for Watson Conversation
MIT License
13 stars 5 forks source link

middleware error with readme.md example #5

Closed randywreed closed 7 years ago

randywreed commented 7 years ago

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);

jdwuarin commented 7 years ago

Thanks for pointing that out. You are correct. Updating the readme now with your changes