LivePersonInc / node-agent-sdk

LivePerson Agent Messaging SDK for NodeJS
MIT License
49 stars 78 forks source link

Reconnect does not refresh token #27

Closed eitan101 closed 7 years ago

eitan101 commented 7 years ago

When websocket is closed with 4401/4407 the code should fresh the token. It should be clear what the SDK does and what the applicative could should do.

https://github.com/LivePersonInc/node-agent-sdk/blob/52b84d4f961dbe27a47888139410de338ae6887b/lib/AgentSDK.js#L132-L134