Skip to content

Added subevent option#26

Merged
sgress454 merged 3 commits intobalderdashy:masterfrom
jeremy-albuixech:added-subevent-option
Jun 27, 2016
Merged

Added subevent option#26
sgress454 merged 3 commits intobalderdashy:masterfrom
jeremy-albuixech:added-subevent-option

Conversation

@jeremy-albuixech
Copy link
Contributor

This PR will allow the inclusion of the subEvent option.

The option is in the current socket.io-redis master branch, it is used because some redis clients are broadcasting the "messageBuffer" event while others the "message" one.

@sgress454
Copy link
Member

Looks good, the option is documented here.

@sgress454 sgress454 merged commit ef684c2 into balderdashy:master Jun 27, 2016
if (app.config.sockets.subClient) {
app.config.sockets.adapterOptions.subClient = app.config.sockets.subClient;
}
if (app.config.sockets.subEvent) {
Copy link
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
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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants