Permalink
Browse files

test.js renamed to server.js

  • Loading branch information...
1 parent 755f7f5 commit 5739a037922d9f2fda3ea04acd29b36a0539c4a9 Balaji committed Oct 8, 2012
Showing with 9 additions and 8 deletions.
  1. +9 −8 example/{test.js → server.js}
@@ -2,8 +2,16 @@
var jscast= require("js-cast");
var express = require('express');
-var app = express();
+//NOTE: update below icecast details to suit ur server configuration.
+var options= {
+icecast: {
+ server: "http://localhost:8000/",
+ sourcepassword: "hackme"
+ }
+};
+
+var app = express();
// Configuration
app.configure(function(){
@@ -44,13 +52,6 @@ app.get("/channels", function(req, res){
res.send(channels);
});
-var options= {
-icecast: {
- server: "http://localhost:8000/",
- sourcepassword: "hackme"
- }
-};
-
jscast.configure(app, options);
app.listen(3000);

0 comments on commit 5739a03

Please sign in to comment.