aboutsummaryrefslogtreecommitdiffstats
path: root/signaling-server/node_modules/socket.io/node_modules/redis/examples/auth.js
blob: 6c0a563cd8beb660f0999e9dc829de469ef235dc (plain)
1
2
3
4
5
var redis  = require("redis"),
    client = redis.createClient();

// This command is magical.  Client stashes the password and will issue on every connect.
client.auth("somepass");