Skip to content

Commit

Permalink
Officially remove firehose
Browse files Browse the repository at this point in the history
  • Loading branch information
sgress454 committed Nov 1, 2016
1 parent 7a31a51 commit 86b8884
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 70 deletions.
11 changes: 0 additions & 11 deletions lib/hooks/pubsub/drink.js

This file was deleted.

35 changes: 0 additions & 35 deletions lib/hooks/pubsub/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -724,9 +724,6 @@ module.exports = function(sails) {
// If a request object was sent, get its socket, otherwise assume a socket was sent.
var socketToOmit = (req && req.socket ? req.socket : req);

// In development environment, blast out a message to everyone
sails.sockets.publishToFirehose(data);

data.verb = 'updated';
data.previous = options.previous;
delete data.model;
Expand Down Expand Up @@ -782,9 +779,6 @@ module.exports = function(sails) {
// If a request object was sent, get its socket, otherwise assume a socket was sent.
var socketToOmit = (req && req.socket ? req.socket : req);

// In development environment, blast out a message to everyone
sails.sockets.publishToFirehose(data);

data.verb = 'destroyed';
delete data.model;

Expand Down Expand Up @@ -917,16 +911,6 @@ module.exports = function(sails) {
// If a request object was sent, get its socket, otherwise assume a socket was sent.
var socketToOmit = (req && req.socket ? req.socket : req);


// In development environment, blast out a message to everyone
sails.sockets.publishToFirehose({
id: id,
model: this.identity,
verb: 'addedTo',
attribute: alias,
addedId: idAdded
});

this.publish(id, this.identity, 'add:'+alias, (function (){
var event = {
id: id,
Expand Down Expand Up @@ -1013,15 +997,6 @@ module.exports = function(sails) {
// If a request object was sent, get its socket, otherwise assume a socket was sent.
var socketToOmit = (req && req.socket ? req.socket : req);

// In development environment, blast out a message to everyone
sails.sockets.publishToFirehose({
id: id,
model: this.identity,
verb: 'removedFrom',
attribute: alias,
removedId: idRemoved
});

this.publish(id, this.identity, 'remove:' + alias, {
id: id,
verb: 'removedFrom',
Expand Down Expand Up @@ -1215,16 +1190,6 @@ module.exports = function(sails) {
// If a request object was sent, get its socket, otherwise assume a socket was sent.
var socketToOmit = (req && req.socket ? req.socket : req);

// Blast success message
sails.sockets.publishToFirehose({

model: this.identity,
verb: 'create',
data: values,
id: values[this.primaryKey]

});

// Publish to classroom
var payload = {
verb: 'created',
Expand Down
11 changes: 0 additions & 11 deletions lib/hooks/pubsub/spit.js

This file was deleted.

13 changes: 0 additions & 13 deletions lib/hooks/pubsub/squirt.js

This file was deleted.

0 comments on commit 86b8884

Please sign in to comment.