Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Typo in example.js and tweak to datasift.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ollieparsley committed Oct 10, 2011
1 parent 817ff6f commit 5f04ba6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion datasift.js
Expand Up @@ -229,7 +229,7 @@ DataSift.prototype.subscribe = function(hash) {
//Send json message to DataSift to subscribe
var json = {"action":"subscribe", "hash":hash};
if (this.request != null) {
this.request.write(JSON.stringify(json), 'utf8');
this.request.write(JSON.stringify(json) + "\r\n", 'utf8');
} else {
this.errorCallback(new Error('You cannot subscribe without being connected to DataSift'));
}
Expand Down
2 changes: 1 addition & 1 deletion example.js
@@ -1,6 +1,6 @@
//Include the DataSift consumer
//var DataSift = require('/path/to/datasift.js'); //When downloading datasift.js
var DataSift = requre('datasift'); //When using npm installation
var DataSift = require('datasift'); //When using npm installation

//Create a new instance of the DataSift consumer
var consumer = new DataSift('username', 'api_key');
Expand Down

0 comments on commit 5f04ba6

Please sign in to comment.