Commit 49ba7535 authored by Yoann Pigné's avatar Yoann Pigné

ip of the server in the test

parent f9f690ff
......@@ -17,11 +17,12 @@
<script>
(function() {
var elmt = document.getElementById("debug")
var handler = new netstream.DOMGSSink(elmt);
var transport = new netstream.Receiver("ws", "localhost", "2003", "/gs/stream", handler);
transport.debug = true;
var transport = new netstream.Receiver("ws", "172.17.22.154", "2003", "/gs/stream", handler);
// transport.debug = true;
})();
</script>
</body>
......
var SERVER_IP = "172.17.22.154";
var http = require('http')
, fs = require('fs')
, WebSocketServer = require('ws').Server
......@@ -15,7 +18,7 @@ netstream.constants = require("../netstream_constants").netstream.constants;
//
http.createServer(function (request, response) {
//console.log('request starting... '+request.url);
console.log('request starting... '+request.url);
fs.readFile('./'+request.url, function(error, content) {
if (error) {
......@@ -41,8 +44,10 @@ console.log('Http Server running at http://127.0.0.1:8080/');
var wss = new WebSocketServer({port: 2003});
var wss = new WebSocketServer({port: 2003, host:SERVER_IP});
wss.on('error', function(){
console.log('WS error....');
});
wss.on('connection', function(ws) {
console.log("WS Client connected to node");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment