Closed norrisboat closed 6 years ago
this is a bit tricky. You need to use to use some cache tools to help e.g. https://www.npmjs.com/package/memory-cache; or redis.
However you need to implement that part; you need to (re)store the session object when there is a incoming webhook request from Facebook Messenger; then trigger the onMessage event handler with that session object.
I would put up some demo code when I have time. But no ETA yet, if anyone wants to help, please feel free to submit a PR. Thanks.
Ok thanks
Was wondering how session management is handled with this library.