node.js/twitter.js
changeset 193 8c79cbf30714
parent 191 7b0015a41e79
child 194 6830fb1e027b
--- a/node.js/twitter.js	Wed Aug 31 18:34:29 2011 +0200
+++ b/node.js/twitter.js	Wed Aug 31 18:35:00 2011 +0200
@@ -1,4 +1,5 @@
 var http = require('http');
+var https = require('https');
 var EventEmitter = require('events').EventEmitter;
 
 function loadTwitterListPage(owner, slug, cursor, users, callback) {
@@ -44,7 +45,7 @@
 
 exports.listenToTweets = function(twitter_ids, twitter_auth)  {
     var emitter = new EventEmitter();
-    var stream = http.request(
+    var stream = https.request(
 	{host: 'stream.twitter.com', path:'/1/statuses/filter.json', 'method': 'POST'}, 
 	function (res) {
 	    res.setEncoding('utf8');