XobL
04/06/2018, 4:31 AMconst wsClient = new SubscriptionClient(SUB_ENDPOINT, {
reconnect: true,
timeout: 30000,
connectionParams: {
token : JSON.parse(localStorage.getItem('token')),
}
})
ServerSide
onConnect: (connectionParams, webSocket) => {
if (connectionParams) {
console.log( connectionParams)
..................................
As soon as i refresh my client app, it always return me the last one, and not the new token after the login?
Can someone explain it to me?nilan
04/06/2018, 7:58 AM