Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ module.exports = function ToConfigure(app) {
if (app.config.sockets.subClient) {
app.config.sockets.adapterOptions.subClient = app.config.sockets.subClient;
}
if (app.config.sockets.subEvent) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we need docs on this one here

cc @sgress454

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Albi34 would you take a minute to add that to the advanced options table here on the 1.0 branch of sails-docs?

needs type, the default value, and a description, e.g.

Optional. The name of the Redis client event that Socket.io will subscribe to.
(based on https://github.com/socketio/socket.io-redis#adapteropts)

Thanks!

app.config.sockets.adapterOptions.subEvent = app.config.sockets.subEvent;
}
if (app.config.sockets.socket) {
app.config.sockets.adapterOptions.socket = app.config.sockets.socket;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/prepare-driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = function (app){
// If `pass` was supplied, pass it in as `auth_pass`
if (adapterConfig.pass) {

redisClientOpts.auth_pass = adapterConfig.pass;
redisClientOpts.auth_pass = adapterConfig.pass;
}


Expand Down