I can close the connection with ds.close()
but as soon as I run ds.login()
I get logged in as the same user, regardless of the credentials provided.
ds.login({user: 'admin', pass: 'admin'})
// AUTH_SUCCESSFUL | admin
ds.close()
// CLIENT_DISCONNECTED | admin
ds.login({})
// INCOMING_CONNECTION | from http://localhost:3000/ (127.0.0.1) via engine.io
// AUTH_SUCCESSFUL | admin
Even if I create a new deepstream
client instance before logging in again, the user does not change.