Switches the connection to a specific namespace and database.
Method Syntax
client.use(namespace, database, session)Arguments
Argument | Description |
|---|---|
namespace | The namespace to switch to. |
database | The database to switch to. |
session | An optional session id to scope the change to a specific session. |
Example usage
client.use("test", "test")